aboutsummaryrefslogtreecommitdiffstats
path: root/NOTES.txt
blob: c6f765b011643832b6002b87e9b27ca1f17572af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Notes and Documents on django

1. Django Class Based Generic Views (The Good, The Bad, And the Ugly)
http://glitterbug.in/blog/django-class-based-generic-views-the-good-the-bad-/show/

2. Django documentation: The contenttypes framework
https://docs.djangoproject.com/en/1.6/ref/contrib/contenttypes/
  GenericForeignKey, GenericRelation, GenericInlineModelAdmin
  * serializing references to ContentType objects:
    [natural keys] dumpdata --natural


### 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