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 using s3cmd.
- --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.
- --config <path>¶
Specify the path of an s3cmd configuration file. Will use ~/.s3cmd by default.
$ python manage.py publish