{"title":"contrib packages","version":"1.11","locale":"en","docname":"ref/contrib/index","url":"/en/1.11/ref/contrib/","canonical":"https://djangodocs.dev/en/1.11/ref/contrib/","summary":"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…","html":"<h1><code class=\"docutils literal notranslate\"><span class=\"pre\">contrib</span></code> packages<a class=\"heading-anchor\" href=\"#contrib-packages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Django aims to follow Python’s <a class=\"reference external\" href=\"https://docs.python.org/3/tutorial/stdlib.html#tut-batteries-included\" title=\"(in Python v3.14)\"><span class=\"xref std std-ref\">“batteries included” philosophy</span></a>. It ships with a variety of extra, optional tools\nthat solve common Web-development problems.</p>\n<p>This code lives in <code class=\"docutils literal notranslate\"><span class=\"pre\">django/contrib</span></code> in the Django distribution. This document\ngives a rundown of the packages in <code class=\"docutils literal notranslate\"><span class=\"pre\">contrib</span></code>, along with any dependencies\nthose packages have.</p>\n<aside class=\"admonition-note admonition\">\n<p class=\"admonition-title\">Note</p>\n<p>For most of these add-ons – specifically, the add-ons that include either\nmodels or template tags – you’ll need to add the package name (e.g.,\n<code class=\"docutils literal notranslate\"><span class=\"pre\">'django.contrib.redirects'</span></code>) to your <a class=\"reference internal\" href=\"/en/1.11/ref/settings/#std-setting-INSTALLED_APPS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">INSTALLED_APPS</span></code></a> setting\nand re-run <code class=\"docutils literal notranslate\"><span class=\"pre\">manage.py</span> <span class=\"pre\">migrate</span></code>.</p>\n</aside>\n<div class=\"toctree-wrapper compound\">\n<ul>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/admin/\">The Django admin site</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/auth/\"><code class=\"docutils literal notranslate\"><span class=\"pre\">django.contrib.auth</span></code></a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/contenttypes/\">The contenttypes framework</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/flatpages/\">The flatpages app</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/gis/\">GeoDjango</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/humanize/\"><code class=\"docutils literal notranslate\"><span class=\"pre\">django.contrib.humanize</span></code></a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/messages/\">The messages framework</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/postgres/\"><code class=\"docutils literal notranslate\"><span class=\"pre\">django.contrib.postgres</span></code></a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/redirects/\">The redirects app</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/sitemaps/\">The sitemap framework</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/sites/\">The “sites” framework</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/staticfiles/\">The <code class=\"docutils literal notranslate\"><span class=\"pre\">staticfiles</span></code> app</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/en/1.11/ref/contrib/syndication/\">The syndication feed framework</a></li>\n</ul>\n</div>\n<section id=\"admin\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">admin</span></code><a class=\"heading-anchor\" href=\"#admin\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>The automatic Django administrative interface. For more information, see\n<a class=\"reference internal\" href=\"/en/1.11/intro/tutorial02/\"><span class=\"doc\">Tutorial 2</span></a> and the\n<a class=\"reference internal\" href=\"/en/1.11/ref/contrib/admin/\"><span class=\"doc\">admin documentation</span></a>.</p>\n<p>Requires the <a class=\"reference internal\" href=\"#auth\">auth</a> and <a class=\"reference internal\" href=\"#contenttypes\">contenttypes</a> contrib packages to be installed.</p>\n</section>\n<section id=\"auth\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">auth</span></code><a class=\"heading-anchor\" href=\"#auth\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Django’s authentication framework.</p>\n<p>See <a class=\"reference internal\" href=\"/en/1.11/topics/auth/\"><span class=\"doc\">User authentication in Django</span></a>.</p>\n</section>\n<section id=\"contenttypes\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">contenttypes</span></code><a class=\"heading-anchor\" href=\"#contenttypes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A light framework for hooking into “types” of content, where each installed\nDjango model is a separate content type.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/contenttypes/\"><span class=\"doc\">contenttypes documentation</span></a>.</p>\n</section>\n<section id=\"flatpages\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">flatpages</span></code><a class=\"heading-anchor\" href=\"#flatpages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A framework for managing simple “flat” HTML content in a database.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/flatpages/\"><span class=\"doc\">flatpages documentation</span></a>.</p>\n<p>Requires the <a class=\"reference internal\" href=\"#sites\">sites</a> contrib package to be installed as well.</p>\n</section>\n<section id=\"gis\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">gis</span></code><a class=\"heading-anchor\" href=\"#gis\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A world-class geospatial framework built on top of Django, that enables\nstorage, manipulation and display of spatial data.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/gis/\"><span class=\"doc\">GeoDjango</span></a> documentation for more.</p>\n</section>\n<section id=\"humanize\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">humanize</span></code><a class=\"heading-anchor\" href=\"#humanize\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A set of Django template filters useful for adding a “human touch” to data.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/humanize/\"><span class=\"doc\">humanize documentation</span></a>.</p>\n</section>\n<section id=\"messages\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">messages</span></code><a class=\"heading-anchor\" href=\"#messages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A framework for storing and retrieving temporary cookie- or session-based\nmessages</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/messages/\"><span class=\"doc\">messages documentation</span></a>.</p>\n</section>\n<section id=\"postgres\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">postgres</span></code><a class=\"heading-anchor\" href=\"#postgres\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A collection of PostgreSQL specific features.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/postgres/\"><span class=\"doc\">contrib.postgres documentation</span></a>.</p>\n</section>\n<section id=\"redirects\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">redirects</span></code><a class=\"heading-anchor\" href=\"#redirects\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A framework for managing redirects.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/redirects/\"><span class=\"doc\">redirects documentation</span></a>.</p>\n</section>\n<section id=\"sessions\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">sessions</span></code><a class=\"heading-anchor\" href=\"#sessions\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A framework for storing data in anonymous sessions.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/topics/http/sessions/\"><span class=\"doc\">sessions documentation</span></a>.</p>\n</section>\n<section id=\"sites\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">sites</span></code><a class=\"heading-anchor\" href=\"#sites\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A light framework that lets you operate multiple websites off of the same\ndatabase and Django installation. It gives you hooks for associating objects to\none or more sites.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/sites/\"><span class=\"doc\">sites documentation</span></a>.</p>\n</section>\n<section id=\"sitemaps\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">sitemaps</span></code><a class=\"heading-anchor\" href=\"#sitemaps\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A framework for generating Google sitemap XML files.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/sitemaps/\"><span class=\"doc\">sitemaps documentation</span></a>.</p>\n</section>\n<section id=\"syndication\">\n<h2><code class=\"docutils literal notranslate\"><span class=\"pre\">syndication</span></code><a class=\"heading-anchor\" href=\"#syndication\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>A framework for generating syndication feeds, in RSS and Atom, quite easily.</p>\n<p>See the <a class=\"reference internal\" href=\"/en/1.11/ref/contrib/syndication/\"><span class=\"doc\">syndication documentation</span></a>.</p>\n</section>\n<section id=\"other-add-ons\">\n<h2>Other add-ons<a class=\"heading-anchor\" href=\"#other-add-ons\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>If you have an idea for functionality to include in <code class=\"docutils literal notranslate\"><span class=\"pre\">contrib</span></code>, let us know!\nCode it up, and post it to the <a class=\"reference internal\" href=\"/en/1.11/internals/mailing-lists/#django-users-mailing-list\"><span class=\"std std-ref\">django-users</span></a> mailing list.</p>\n</section>","rootId":"contrib-packages","toc":[{"title":"admin","anchor":"admin","children":[]},{"title":"auth","anchor":"auth","children":[]},{"title":"contenttypes","anchor":"contenttypes","children":[]},{"title":"flatpages","anchor":"flatpages","children":[]},{"title":"gis","anchor":"gis","children":[]},{"title":"humanize","anchor":"humanize","children":[]},{"title":"messages","anchor":"messages","children":[]},{"title":"postgres","anchor":"postgres","children":[]},{"title":"redirects","anchor":"redirects","children":[]},{"title":"sessions","anchor":"sessions","children":[]},{"title":"sites","anchor":"sites","children":[]},{"title":"sitemaps","anchor":"sitemaps","children":[]},{"title":"syndication","anchor":"syndication","children":[]},{"title":"Other add-ons","anchor":"other-add-ons","children":[]}],"breadcrumbs":[{"docname":"ref/index","title":"API Reference","url":"/en/1.11/ref/"}],"prev":{"docname":"ref/clickjacking","title":"Clickjacking Protection","url":"/en/1.11/ref/clickjacking/"},"next":{"docname":"ref/contrib/admin/index","title":"The Django admin site","url":"/en/1.11/ref/contrib/admin/"},"formats":{"html":"/en/1.11/ref/contrib/","markdown":"/en/1.11/ref/contrib.md","json":"/en/1.11/ref/contrib.json"},"source":"https://github.com/django/django/blob/stable/1.11.x/docs/ref/contrib/index.txt","official":"https://docs.djangoproject.com/en/1.11/ref/contrib/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9","1.8"],"inLocales":["en","fr","ja","id","pt-br","ko","es","el","pl"]}