aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+
+