aboutsummaryrefslogtreecommitdiffstats
path: root/NOTES.txt
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-06-25 13:38:35 +0800
committerWeitian LI <liweitianux@gmail.com>2014-06-25 13:38:35 +0800
commit2ff96ef814d1c0e4dc3464418290236797bae038 (patch)
tree20fcb69b8960a8b091a6e5c6b8bd08c7351f4ee7 /NOTES.txt
parent7e4bb19c27a0d27f87bd59c297bbfab6a064615d (diff)
downloaddjango-skaschool-master.tar.bz2
Update NOTES.txt about dumpdata arguments.HEADmaster
Diffstat (limited to 'NOTES.txt')
-rw-r--r--NOTES.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/NOTES.txt b/NOTES.txt
index 4cb5704..c6f765b 100644
--- a/NOTES.txt
+++ b/NOTES.txt
@@ -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
+
+