Manage Django sites
Collect static files from each of your applications into a single location that can easily be served in production.
CLI Example:
salt '*' django.collectstatic settings.py
Run arbitrary django management command
CLI Example:
salt '*' django.command <settings_module> <command>
Create a super user for the database. This function defaults to use the --noinput flag which prevents the creation of a password for the superuser.
CLI Example:
salt '*' django.createsuperuser settings.py user [email protected]
Load fixture data
CLI Example:
salt '*' django.loaddata settings.py <comma delimited list of fixtures>
Run syncdb
Execute the Django-Admin syncdb command, if South is available on the minion the migrate option can be passed as True calling the migrations to run after the syncdb completes
CLI Example:
salt '*' django.syncdb settings.py