contrib
packagesΒΆ
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.
Including contrib
packages in INSTALLED_APPS
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 rerun manage.py migrate
.
admin
ΒΆ
The automatic Django administrative interface. For more information, see Tutorial 2 and the admin documentation.
Requires the auth and contenttypes contrib packages to be installed.
auth
ΒΆ
Djangoβs authentication framework.
contenttypes
ΒΆ
A light framework for hooking into βtypesβ of content, where each installed Django model is a separate content type.
See the contenttypes documentation.
flatpages
ΒΆ
A framework for managing βflatβ HTML content in a database.
See the flatpages documentation.
Requires the sites contrib package to be installed as well.
gis
ΒΆ
A world-class geospatial framework built on top of Django, that enables storage, manipulation and display of spatial data.
See the GeoDjango documentation for more.
humanize
ΒΆ
A set of Django template filters useful for adding a βhuman touchβ to data.
See the humanize documentation.
messages
ΒΆ
A framework for storing and retrieving temporary cookie- or session-based messages
See the messages documentation.
postgres
ΒΆ
A collection of PostgreSQL specific features.
See the contrib.postgres documentation.
redirects
ΒΆ
A framework for managing redirects.
See the redirects documentation.
sessions
ΒΆ
A framework for storing data in anonymous sessions.
See the sessions documentation.
sites
ΒΆ
A 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.
sitemaps
ΒΆ
A framework for generating Google sitemap XML files.
See the sitemaps documentation.