index.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. ====================
  2. ``contrib`` packages
  3. ====================
  4. Django aims to follow Python's `"batteries included" philosophy`_. It ships
  5. with a variety of extra, optional tools that solve common Web-development
  6. problems.
  7. This code lives in ``django/contrib`` in the Django distribution. This document
  8. gives a rundown of the packages in ``contrib``, along with any dependencies
  9. those packages have.
  10. .. admonition:: Note
  11. For most of these add-ons -- specifically, the add-ons that include either
  12. models or template tags -- you'll need to add the package name (e.g.,
  13. ``'django.contrib.redirects'``) to your :setting:`INSTALLED_APPS` setting
  14. and re-run ``manage.py migrate``.
  15. .. _"batteries included" philosophy: https://docs.python.org/tutorial/stdlib.html#batteries-included
  16. .. toctree::
  17. :maxdepth: 1
  18. admin/index
  19. auth
  20. contenttypes
  21. flatpages
  22. gis/index
  23. humanize
  24. messages
  25. postgres/index
  26. redirects
  27. sitemaps
  28. sites
  29. staticfiles
  30. syndication
  31. webdesign
  32. admin
  33. =====
  34. The automatic Django administrative interface. For more information, see
  35. :doc:`Tutorial 2 </intro/tutorial02>` and the
  36. :doc:`admin documentation </ref/contrib/admin/index>`.
  37. Requires the auth_ and contenttypes_ contrib packages to be installed.
  38. auth
  39. ====
  40. Django's authentication framework.
  41. See :doc:`/topics/auth/index`.
  42. contenttypes
  43. ============
  44. A light framework for hooking into "types" of content, where each installed
  45. Django model is a separate content type.
  46. See the :doc:`contenttypes documentation </ref/contrib/contenttypes>`.
  47. flatpages
  48. =========
  49. A framework for managing simple "flat" HTML content in a database.
  50. See the :doc:`flatpages documentation </ref/contrib/flatpages>`.
  51. Requires the sites_ contrib package to be installed as well.
  52. gis
  53. ====
  54. A world-class geospatial framework built on top of Django, that enables
  55. storage, manipulation and display of spatial data.
  56. See the :doc:`/ref/contrib/gis/index` documentation for more.
  57. humanize
  58. ========
  59. A set of Django template filters useful for adding a "human touch" to data.
  60. See the :doc:`humanize documentation </ref/contrib/humanize>`.
  61. messages
  62. ========
  63. A framework for storing and retrieving temporary cookie- or session-based
  64. messages
  65. See the :doc:`messages documentation </ref/contrib/messages>`.
  66. postgres
  67. ========
  68. A collection of PostgreSQL specific features.
  69. See the :doc:`contrib.postgres documentation </ref/contrib/postgres/index>`.
  70. redirects
  71. =========
  72. A framework for managing redirects.
  73. See the :doc:`redirects documentation </ref/contrib/redirects>`.
  74. sessions
  75. ========
  76. A framework for storing data in anonymous sessions.
  77. See the :doc:`sessions documentation </topics/http/sessions>`.
  78. sites
  79. =====
  80. A light framework that lets you operate multiple Web sites off of the same
  81. database and Django installation. It gives you hooks for associating objects to
  82. one or more sites.
  83. See the :doc:`sites documentation </ref/contrib/sites>`.
  84. sitemaps
  85. ========
  86. A framework for generating Google sitemap XML files.
  87. See the :doc:`sitemaps documentation </ref/contrib/sitemaps>`.
  88. syndication
  89. ===========
  90. A framework for generating syndication feeds, in RSS and Atom, quite easily.
  91. See the :doc:`syndication documentation </ref/contrib/syndication>`.
  92. webdesign
  93. =========
  94. Helpers and utilities targeted primarily at Web *designers* rather than
  95. Web *developers*.
  96. See the :doc:`Web design helpers documentation </ref/contrib/webdesign>`.
  97. Other add-ons
  98. =============
  99. If you have an idea for functionality to include in ``contrib``, let us know!
  100. Code it up, and post it to the |django-users| mailing list.