From 2ff96ef814d1c0e4dc3464418290236797bae038 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Wed, 25 Jun 2014 13:38:35 +0800 Subject: Update NOTES.txt about dumpdata arguments. --- NOTES.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 + + -- cgit v1.2.2