7👍
✅
You can use fabric
, a Python library that allows you to script remote actions. This question has some links in the accepted answer for more information on fabric
and django.
You can also call management commands directly:
from django.core.management import call_command
call_command('syncdb')
call_command('loaddata', 'setup/fixture.xml')
Save that as a normal python file and execute it from your shell or as part of your deployment scripts.
Source:stackexchange.com