Last active
December 15, 2015 15:38
-
-
Save ddehghan/5283075 to your computer and use it in GitHub Desktop.
Django tips and shortcuts
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
Python Guide: http://docs.python-guide.org/en/latest/ | |
# Skip creating admin account | |
# from: http://stackoverflow.com/questions/1466827/automatically-create-an-admin-user-when-running-djangos-manage-py-syncdb | |
Setup a clean DB | |
python manage.py dumpdata --indent=4 auth > initial_data.json | |
python manage.py dumpdata --indent=4 sessions | |
python manage.py syncdb --noinput | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment