November 2015
Beginner to intermediate
840 pages
26h 30m
English
contrib CodeThe contributed library is colloquially called contrib because that is the name of the directory that houses it, as you can see in Example 13.4.
Example 13.4: Shell Code
$ ls django/contrib/ --init--.py gis sitemaps admin humanize sites admindocs messages staticfiles auth postgres syndication contenttypes redirects webdesign flatpages sessions
The truth about contrib is very simple: every one of these directories is a Django app. Take, for instance, the flatpages/ directory, shown in Example 13.5.
Example 13.5: Shell Code
$ ls django/contrib/flatpages/ --init--.py locale sitemaps.py admin.py middleware.py ...
Read now
Unlock full access