Last active
October 13, 2015 10:38
-
-
Save chris-ramon/4183301 to your computer and use it in GitHub Desktop.
django commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export data | |
./manage.py dumpdata --indent=2 auth > initial_data.json | |
# no input | |
./manage.py syncdb --noinput | |
# load any fixture, which should be whitin a dir called fixture within some django app | |
./manage.py loaddata shipping_fixture.json | |
# migrations | |
./manage.py migrate your_app 0002 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment