Management commands

Custom Django management commands for this library that help make things happen.

build

Bake out a site as flat files in the build directory.

--build_dir <path>

Specify the path of the build directory. Will use settings.BUILD_DIR by default.

--skip-static

Skip collecting the static files when building.

--skip-media

Skip collecting the media files when building.

$ python manage.py build

buildserver

Starts a variation of Django’s runserver designed to serve the static files you’ve built in the build directory.

$ python manage.py buildserver

publish

Syncs the build directory with your Amazon S3 bucket.

--aws-bucket-name <name>

Specify the AWS bucket to sync with. Will use settings.AWS_BUCKET_NAME by default.

--build_dir <path>

Specify the path of the build directory. Will use settings.BUILD_DIR by default.

--force

Force a re-upload of all files in the build directory to the AWS bucket.

--dry-run

Provide output of what the command would perform, but without changing anything.

$ python manage.py publish

unbuild

Empties the build directory.

$ python manage.py unbuild

unpublish

Empties the Amazon S3 bucket defined in settings.py.

$ python manage.py unpublish