Django aims to follow Python’s “batteries included” philosophy. It ships with a variety of extra, optional tools that solve common Web-development problems.
This code lives in django/contrib in the Django distribution. This document gives a rundown of the packages in contrib, along with any dependencies those packages have.
Note
For most of these add-ons – specifically, the add-ons that include either models or template tags – you’ll need to add the package name (e.g., 'django.contrib.redirects') to your INSTALLED_APPS setting and re-run manage.py migrate.
django.contrib.authdjango.contrib.humanizedjango.contrib.postgresstaticfiles appadminThe automatic Django administrative interface. For more information, see Tutorial 2 and the admin documentation.
Requires the auth and contenttypes contrib packages to be installed.
authDjango’s authentication framework.
See User authentication in Django.
contenttypesA light framework for hooking into “types” of content, where each installed Django model is a separate content type.
See the contenttypes documentation.
flatpagesA framework for managing simple “flat” HTML content in a database.
See the flatpages documentation.
Requires the sites contrib package to be installed as well.
gisA world-class geospatial framework built on top of Django, that enables storage, manipulation and display of spatial data.
See the GeoDjango documentation for more.
humanizeA set of Django template filters useful for adding a “human touch” to data.
See the humanize documentation.
messagesA framework for storing and retrieving temporary cookie- or session-based messages
See the messages documentation.
postgresA collection of PostgreSQL specific features.
See the contrib.postgres documentation.
redirectsA framework for managing redirects.
See the redirects documentation.
sessionsA framework for storing data in anonymous sessions.
See the sessions documentation.
sitesA light framework that lets you operate multiple websites off of the same database and Django installation. It gives you hooks for associating objects to one or more sites.
See the sites documentation.
sitemapsA framework for generating Google sitemap XML files.
See the sitemaps documentation.
syndicationSee the syndication documentation.
If you have an idea for functionality to include in contrib, let us know! Code it up, and post it to the django-users mailing list.
© Django Software Foundation and individual contributors
Licensed under the BSD License.
https://docs.djangoproject.com/en/1.11/ref/contrib/index/