diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-06-25 13:38:35 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-06-25 13:38:35 +0800 |
commit | 2ff96ef814d1c0e4dc3464418290236797bae038 (patch) | |
tree | 20fcb69b8960a8b091a6e5c6b8bd08c7351f4ee7 | |
parent | 7e4bb19c27a0d27f87bd59c297bbfab6a064615d (diff) | |
download | django-skaschool-master.tar.bz2 |
-rw-r--r-- | NOTES.txt | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -10,6 +10,15 @@ https://docs.djangoproject.com/en/1.6/ref/contrib/contenttypes/ [natural keys] dumpdata --natural -## dumpdata +### dumpdata ### +# --settings: $ python manage.py dumpdata --settings='django_skaschool.settings_production' --indent=4 +# problems with contenttypes +> dumpdata --natural +some other useful arguments: +> -e contenttypes -e auth.Permission +only use this together with --natural, +or else might end up with badly aligned id numbers + + |