2009-12-26 04:44:21 +01:00
|
|
|
====================
|
|
|
|
``contrib`` packages
|
|
|
|
====================
|
2005-11-22 20:21:51 +01:00
|
|
|
|
2006-08-01 22:48:26 +02:00
|
|
|
Django aims to follow Python's `"batteries included" philosophy`_. It ships
|
|
|
|
with a variety of extra, optional tools that solve common Web-development
|
|
|
|
problems.
|
2005-11-22 20:21:51 +01:00
|
|
|
|
2007-06-07 19:50:53 +02:00
|
|
|
This code lives in ``django/contrib`` in the Django distribution. This document
|
2007-06-07 23:41:41 +02:00
|
|
|
gives a rundown of the packages in ``contrib``, along with any dependencies
|
2007-06-07 19:50:53 +02:00
|
|
|
those packages have.
|
2005-11-22 20:21:51 +01:00
|
|
|
|
2007-03-28 00:18:52 +02:00
|
|
|
.. admonition:: 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.,
|
2014-01-18 19:34:54 +01:00
|
|
|
``'django.contrib.redirects'``) to your :setting:`INSTALLED_APPS` setting
|
|
|
|
and re-run ``manage.py migrate``.
|
2007-03-28 00:18:52 +02:00
|
|
|
|
2014-12-19 16:25:57 +01:00
|
|
|
.. _"batteries included" philosophy: https://docs.python.org/tutorial/stdlib.html#batteries-included
|
2006-08-01 22:48:26 +02:00
|
|
|
|
2008-08-24 00:25:40 +02:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2009-03-23 21:22:56 +01:00
|
|
|
admin/index
|
2008-08-24 00:25:40 +02:00
|
|
|
auth
|
|
|
|
contenttypes
|
|
|
|
flatpages
|
2010-03-26 21:14:53 +01:00
|
|
|
gis/index
|
2008-08-24 00:25:40 +02:00
|
|
|
humanize
|
2009-12-09 17:57:23 +01:00
|
|
|
messages
|
2014-03-26 17:44:21 +01:00
|
|
|
postgres/index
|
2008-08-24 00:25:40 +02:00
|
|
|
redirects
|
|
|
|
sitemaps
|
|
|
|
sites
|
2010-10-20 03:33:24 +02:00
|
|
|
staticfiles
|
2008-08-24 00:25:40 +02:00
|
|
|
syndication
|
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``admin``
|
|
|
|
=========
|
2005-11-22 20:21:51 +01:00
|
|
|
|
|
|
|
The automatic Django administrative interface. For more information, see
|
2010-08-19 21:27:44 +02:00
|
|
|
:doc:`Tutorial 2 </intro/tutorial02>` and the
|
|
|
|
:doc:`admin documentation </ref/contrib/admin/index>`.
|
2005-11-22 20:21:51 +01:00
|
|
|
|
2007-06-07 19:50:53 +02:00
|
|
|
Requires the auth_ and contenttypes_ contrib packages to be installed.
|
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``auth``
|
|
|
|
========
|
2006-05-22 05:14:33 +02:00
|
|
|
|
|
|
|
Django's authentication framework.
|
|
|
|
|
2012-12-28 20:00:11 +01:00
|
|
|
See :doc:`/topics/auth/index`.
|
2006-05-22 05:14:33 +02:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``contenttypes``
|
|
|
|
================
|
2006-05-22 05:14:33 +02:00
|
|
|
|
|
|
|
A light framework for hooking into "types" of content, where each installed
|
2007-12-17 08:39:24 +01:00
|
|
|
Django model is a separate content type.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`contenttypes documentation </ref/contrib/contenttypes>`.
|
2006-05-22 05:14:33 +02:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``flatpages``
|
|
|
|
=============
|
2007-12-01 18:07:32 +01:00
|
|
|
|
|
|
|
A framework for managing simple "flat" HTML content in a database.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`flatpages documentation </ref/contrib/flatpages>`.
|
2007-12-01 18:07:32 +01:00
|
|
|
|
|
|
|
Requires the sites_ contrib package to be installed as well.
|
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``gis``
|
|
|
|
=======
|
2010-03-26 21:14:53 +01:00
|
|
|
|
|
|
|
A world-class geospatial framework built on top of Django, that enables
|
|
|
|
storage, manipulation and display of spatial data.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`/ref/contrib/gis/index` documentation for more.
|
2010-03-26 21:14:53 +01:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``humanize``
|
|
|
|
============
|
2006-06-04 02:58:39 +02:00
|
|
|
|
|
|
|
A set of Django template filters useful for adding a "human touch" to data.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`humanize documentation </ref/contrib/humanize>`.
|
2007-08-20 10:50:08 +02:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``messages``
|
|
|
|
============
|
2009-12-09 17:57:23 +01:00
|
|
|
|
|
|
|
A framework for storing and retrieving temporary cookie- or session-based
|
|
|
|
messages
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`messages documentation </ref/contrib/messages>`.
|
2009-12-09 17:57:23 +01:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``postgres``
|
|
|
|
============
|
2014-03-26 17:44:21 +01:00
|
|
|
|
|
|
|
A collection of PostgreSQL specific features.
|
|
|
|
|
|
|
|
See the :doc:`contrib.postgres documentation </ref/contrib/postgres/index>`.
|
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``redirects``
|
|
|
|
=============
|
2005-11-22 20:21:51 +01:00
|
|
|
|
|
|
|
A framework for managing redirects.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`redirects documentation </ref/contrib/redirects>`.
|
2005-11-22 20:21:51 +01:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``sessions``
|
|
|
|
============
|
2007-12-01 18:07:32 +01:00
|
|
|
|
|
|
|
A framework for storing data in anonymous sessions.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`sessions documentation </topics/http/sessions>`.
|
2007-12-01 18:07:32 +01:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``sites``
|
|
|
|
=========
|
2006-05-22 05:14:33 +02:00
|
|
|
|
2015-11-15 13:05:15 +01:00
|
|
|
A light framework that lets you operate multiple websites off of the same
|
2006-05-22 05:14:33 +02:00
|
|
|
database and Django installation. It gives you hooks for associating objects to
|
2006-05-22 06:48:44 +02:00
|
|
|
one or more sites.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`sites documentation </ref/contrib/sites>`.
|
2006-05-22 05:14:33 +02:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``sitemaps``
|
|
|
|
============
|
2006-09-01 01:19:53 +02:00
|
|
|
|
|
|
|
A framework for generating Google sitemap XML files.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`sitemaps documentation </ref/contrib/sitemaps>`.
|
2006-09-01 01:19:53 +02:00
|
|
|
|
2016-01-24 22:26:11 +01:00
|
|
|
``syndication``
|
|
|
|
===============
|
2005-11-22 20:21:51 +01:00
|
|
|
|
|
|
|
A framework for generating syndication feeds, in RSS and Atom, quite easily.
|
|
|
|
|
2010-08-19 21:27:44 +02:00
|
|
|
See the :doc:`syndication documentation </ref/contrib/syndication>`.
|
2005-11-22 20:21:51 +01:00
|
|
|
|
|
|
|
Other add-ons
|
|
|
|
=============
|
|
|
|
|
|
|
|
If you have an idea for functionality to include in ``contrib``, let us know!
|
2013-10-04 00:51:22 +02:00
|
|
|
Code it up, and post it to the |django-users| mailing list.
|