Skip to content

Instantly share code, notes, and snippets.

@chris-ramon
Last active October 13, 2015 10:38
Show Gist options
  • Save chris-ramon/4183301 to your computer and use it in GitHub Desktop.
Save chris-ramon/4183301 to your computer and use it in GitHub Desktop.
django commands
# 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