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_module>
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_module> user [email protected]
Load fixture data
CLI Example:
salt '*' django.loaddata <settings_module> <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_module>
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.djangomod.html