Created
October 5, 2012 14:19
-
-
Save xfenix/3840027 to your computer and use it in GitHub Desktop.
Django dump/restore deployment
This file contains hidden or 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
Local: | |
./manage.py dumpdata all.json | |
Remote: | |
./manage.py syncdb | |
psql [DBNAME] | |
delete from auth_group_permissions; delete from auth_permission; delete from django_admin_log; delete from django_content_type; | |
./manage.py loaddata all.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment