Manages a Django application using the I(manage.py) application frontend to I(django-admin). With the I(virtualenv) parameter, all management commands will be executed by the given I(virtualenv) installation.

Options

namedescriptionrequiredchoices
command
  • The name of the Django management command to run. Built in commands are cleanup, collectstatic, flush, loaddata, migrate, runfcgi, syncdb, test, and validate.
  • Other commands can be entered, but will fail if they're unknown to Django. Other commands that may prompt for user input should be run with the I(--noinput) flag.
true
  • cleanup
  • collectstaticflushloaddatamigraterunfcgisyncdbtestvalidate
app_path The path to the root of the Django application where B(manage.py) lives. true
settings The Python path to the application's settings module, such as 'myapp.settings'.
pythonpath 1. directory to add to the Python path. Typically used to include the settings module if it is located external to the application directory.
virtualenv An optional path to a I(virtualenv) installation to use while running the manage application.
apps 1. list of space-delimited apps to target. Used by the 'test' command.
cache_table The name of the table used for database-backed caching. Used by the 'createcachetable' command.
database The database to target. Used by the 'createcachetable', 'flush', 'loaddata', and 'syncdb' commands.
failfast Fail the command immediately if a test fails. Used by the 'test' command.
  • yes
  • no
fixtures 1. space-delimited list of fixture file names to load in the database. B(Required) by the 'loaddata' command.
skip Will skip over out-of-order missing migrations, you can only use this parameter with I(migrate)
merge Will run out-of-order or missing migrations as they are not rollback migrations, you can only use this parameter with 'migrate' command
link Will create links to the files instead of copying them, you can only use this parameter with 'collectstatic' command

Author

Scott Anderson (@tastychutney)