index.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. .. _index:
  2. ====================
  3. Django documentation
  4. ====================
  5. .. rubric:: Everything you need to know about Django.
  6. Getting help
  7. ============
  8. Having trouble? We'd like to help!
  9. * Try the :doc:`FAQ <faq/index>` -- it's got answers to many common questions.
  10. * Looking for specific information? Try the :ref:`genindex`, :ref:`modindex` or
  11. the :doc:`detailed table of contents <contents>`.
  12. * Search for information in the archives of the |django-users| mailing list, or
  13. `post a question`_.
  14. * Ask a question in the `#django IRC channel`_, or search the `IRC logs`_ to see
  15. if it's been asked before.
  16. * Report bugs with Django in our `ticket tracker`_.
  17. .. _archives: http://groups.google.com/group/django-users/
  18. .. _post a question: https://groups.google.com/d/forum/django-users
  19. .. _#django IRC channel: irc://irc.freenode.net/django
  20. .. _IRC logs: http://django-irc-logs.com/
  21. .. _ticket tracker: https://code.djangoproject.com/
  22. First steps
  23. ===========
  24. Are you new to Django or to programming? This is the place to start!
  25. * **From scratch:**
  26. :doc:`Overview <intro/overview>` |
  27. :doc:`Installation <intro/install>`
  28. * **Tutorial:**
  29. :doc:`Part 1: Models <intro/tutorial01>` |
  30. :doc:`Part 2: The admin site <intro/tutorial02>` |
  31. :doc:`Part 3: Views and templates <intro/tutorial03>` |
  32. :doc:`Part 4: Forms and generic views <intro/tutorial04>` |
  33. :doc:`Part 5: Testing <intro/tutorial05>` |
  34. :doc:`Part 6: Static files <intro/tutorial06>`
  35. * **Advanced Tutorials:**
  36. :doc:`How to write reusable apps <intro/reusable-apps>` |
  37. :doc:`Writing your first patch for Django <intro/contributing>`
  38. The model layer
  39. ===============
  40. Django provides an abstraction layer (the "models") for structuring and
  41. manipulating the data of your Web application. Learn more about it below:
  42. * **Models:**
  43. :doc:`Model syntax <topics/db/models>` |
  44. :doc:`Field types <ref/models/fields>` |
  45. :doc:`Meta options <ref/models/options>` |
  46. :doc:`Model class <ref/models/class>`
  47. * **QuerySets:**
  48. :doc:`Executing queries <topics/db/queries>` |
  49. :doc:`QuerySet method reference <ref/models/querysets>` |
  50. :doc:`Lookup expressions <ref/models/lookups>`
  51. * **Model instances:**
  52. :doc:`Instance methods <ref/models/instances>` |
  53. :doc:`Accessing related objects <ref/models/relations>`
  54. * **Migrations:**
  55. :doc:`Introduction to Migrations<topics/migrations>` |
  56. :doc:`Operations reference <ref/migration-operations>` |
  57. :doc:`SchemaEditor <ref/schema-editor>` |
  58. :doc:`Writing migrations <howto/writing-migrations>`
  59. * **Advanced:**
  60. :doc:`Managers <topics/db/managers>` |
  61. :doc:`Raw SQL <topics/db/sql>` |
  62. :doc:`Transactions <topics/db/transactions>` |
  63. :doc:`Aggregation <topics/db/aggregation>` |
  64. :doc:`Custom fields <howto/custom-model-fields>` |
  65. :doc:`Multiple databases <topics/db/multi-db>` |
  66. :doc:`Custom lookups <howto/custom-lookups>` |
  67. :doc:`Query Expressions <ref/models/expressions>` |
  68. :doc:`Conditional Expressions <ref/models/conditional-expressions>` |
  69. :doc:`Database Functions <ref/models/database-functions>`
  70. * **Other:**
  71. :doc:`Supported databases <ref/databases>` |
  72. :doc:`Legacy databases <howto/legacy-databases>` |
  73. :doc:`Providing initial data <howto/initial-data>` |
  74. :doc:`Optimize database access <topics/db/optimization>` |
  75. :doc:`PostgreSQL specific features <ref/contrib/postgres/index>`
  76. The view layer
  77. ==============
  78. Django has the concept of "views" to encapsulate the logic responsible for
  79. processing a user's request and for returning the response. Find all you need
  80. to know about views via the links below:
  81. * **The basics:**
  82. :doc:`URLconfs <topics/http/urls>` |
  83. :doc:`View functions <topics/http/views>` |
  84. :doc:`Shortcuts <topics/http/shortcuts>` |
  85. :doc:`Decorators <topics/http/decorators>`
  86. * **Reference:**
  87. :doc:`Built-in Views <ref/views>` |
  88. :doc:`Request/response objects <ref/request-response>` |
  89. :doc:`TemplateResponse objects <ref/template-response>`
  90. * **File uploads:**
  91. :doc:`Overview <topics/http/file-uploads>` |
  92. :doc:`File objects <ref/files/file>` |
  93. :doc:`Storage API <ref/files/storage>` |
  94. :doc:`Managing files <topics/files>` |
  95. :doc:`Custom storage <howto/custom-file-storage>`
  96. * **Class-based views:**
  97. :doc:`Overview <topics/class-based-views/index>` |
  98. :doc:`Built-in display views <topics/class-based-views/generic-display>` |
  99. :doc:`Built-in editing views <topics/class-based-views/generic-editing>` |
  100. :doc:`Using mixins <topics/class-based-views/mixins>` |
  101. :doc:`API reference <ref/class-based-views/index>` |
  102. :doc:`Flattened index<ref/class-based-views/flattened-index>`
  103. * **Advanced:**
  104. :doc:`Generating CSV <howto/outputting-csv>` |
  105. :doc:`Generating PDF <howto/outputting-pdf>`
  106. * **Middleware:**
  107. :doc:`Overview <topics/http/middleware>` |
  108. :doc:`Built-in middleware classes <ref/middleware>`
  109. The template layer
  110. ==================
  111. The template layer provides a designer-friendly syntax for rendering the
  112. information to be presented to the user. Learn how this syntax can be used by
  113. designers and how it can be extended by programmers:
  114. * **The basics:**
  115. :doc:`Overview <topics/templates>`
  116. * **For designers:**
  117. :doc:`Language overview <ref/templates/language>` |
  118. :doc:`Built-in tags and filters <ref/templates/builtins>` |
  119. :doc:`Humanization <ref/contrib/humanize>`
  120. * **For programmers:**
  121. :doc:`Template API <ref/templates/api>` |
  122. :doc:`Custom tags and filters <howto/custom-template-tags>`
  123. Forms
  124. =====
  125. Django provides a rich framework to facilitate the creation of forms and the
  126. manipulation of form data.
  127. * **The basics:**
  128. :doc:`Overview <topics/forms/index>` |
  129. :doc:`Form API <ref/forms/api>` |
  130. :doc:`Built-in fields <ref/forms/fields>` |
  131. :doc:`Built-in widgets <ref/forms/widgets>`
  132. * **Advanced:**
  133. :doc:`Forms for models <topics/forms/modelforms>` |
  134. :doc:`Integrating media <topics/forms/media>` |
  135. :doc:`Formsets <topics/forms/formsets>` |
  136. :doc:`Customizing validation <ref/forms/validation>`
  137. The development process
  138. =======================
  139. Learn about the various components and tools to help you in the development and
  140. testing of Django applications:
  141. * **Settings:**
  142. :doc:`Overview <topics/settings>` |
  143. :doc:`Full list of settings <ref/settings>`
  144. * **Applications:**
  145. :doc:`Overview <ref/applications>`
  146. * **Exceptions:**
  147. :doc:`Overview <ref/exceptions>`
  148. * **django-admin and manage.py:**
  149. :doc:`Overview <ref/django-admin>` |
  150. :doc:`Adding custom commands <howto/custom-management-commands>`
  151. * **Testing:**
  152. :doc:`Introduction <topics/testing/index>` |
  153. :doc:`Writing and running tests <topics/testing/overview>` |
  154. :doc:`Included testing tools <topics/testing/tools>` |
  155. :doc:`Advanced topics <topics/testing/advanced>`
  156. * **Deployment:**
  157. :doc:`Overview <howto/deployment/index>` |
  158. :doc:`WSGI servers <howto/deployment/wsgi/index>` |
  159. :doc:`Deploying static files <howto/static-files/deployment>` |
  160. :doc:`Tracking code errors by email <howto/error-reporting>`
  161. The admin
  162. =========
  163. Find all you need to know about the automated admin interface, one of Django's
  164. most popular features:
  165. * :doc:`Admin site <ref/contrib/admin/index>`
  166. * :doc:`Admin actions <ref/contrib/admin/actions>`
  167. * :doc:`Admin documentation generator<ref/contrib/admin/admindocs>`
  168. Security
  169. ========
  170. Security is a topic of paramount importance in the development of Web
  171. applications and Django provides multiple protection tools and mechanisms:
  172. * :doc:`Security overview <topics/security>`
  173. * :doc:`Disclosed security issues in Django <releases/security>`
  174. * :doc:`Clickjacking protection <ref/clickjacking>`
  175. * :doc:`Cross Site Request Forgery protection <ref/csrf>`
  176. * :doc:`Cryptographic signing <topics/signing>`
  177. * :ref:`Security Middleware <security-middleware>`
  178. Internationalization and localization
  179. =====================================
  180. Django offers a robust internationalization and localization framework to
  181. assist you in the development of applications for multiple languages and world
  182. regions:
  183. * :doc:`Overview <topics/i18n/index>` |
  184. :doc:`Internationalization <topics/i18n/translation>` |
  185. :ref:`Localization <how-to-create-language-files>` |
  186. :doc:`Localized Web UI formatting and form input <topics/i18n/formatting>`
  187. * :doc:`Time zones </topics/i18n/timezones>`
  188. Performance and optimization
  189. ============================
  190. There are a variety of techniques and tools that can help get your code running
  191. more efficiently - faster, and using fewer system resources.
  192. * :doc:`Performance and optimization overview <topics/performance>`
  193. Python compatibility
  194. ====================
  195. Django aims to be compatible with multiple different flavors and versions of
  196. Python:
  197. * :doc:`Jython support <howto/jython>`
  198. * :doc:`Python 3 compatibility <topics/python3>`
  199. Geographic framework
  200. ====================
  201. :doc:`GeoDjango <ref/contrib/gis/index>` intends to be a world-class geographic
  202. Web framework. Its goal is to make it as easy as possible to build GIS Web
  203. applications and harness the power of spatially enabled data.
  204. Common Web application tools
  205. ============================
  206. Django offers multiple tools commonly needed in the development of Web
  207. applications:
  208. * :doc:`Authentication <topics/auth/index>`
  209. * :doc:`Caching <topics/cache>`
  210. * :doc:`Logging <topics/logging>`
  211. * :doc:`Sending emails <topics/email>`
  212. * :doc:`Syndication feeds (RSS/Atom) <ref/contrib/syndication>`
  213. * :doc:`Pagination <topics/pagination>`
  214. * :doc:`Messages framework <ref/contrib/messages>`
  215. * :doc:`Serialization <topics/serialization>`
  216. * :doc:`Sessions <topics/http/sessions>`
  217. * :doc:`Sitemaps <ref/contrib/sitemaps>`
  218. * :doc:`Static files management <ref/contrib/staticfiles>`
  219. * :doc:`Data validation <ref/validators>`
  220. Other core functionalities
  221. ==========================
  222. Learn about some other core functionalities of the Django framework:
  223. * :doc:`Conditional content processing <topics/conditional-view-processing>`
  224. * :doc:`Content types and generic relations <ref/contrib/contenttypes>`
  225. * :doc:`Flatpages <ref/contrib/flatpages>`
  226. * :doc:`Redirects <ref/contrib/redirects>`
  227. * :doc:`Signals <topics/signals>`
  228. * :doc:`System check framework <topics/checks>`
  229. * :doc:`The sites framework <ref/contrib/sites>`
  230. * :doc:`Unicode in Django <ref/unicode>`
  231. The Django open-source project
  232. ==============================
  233. Learn about the development process for the Django project itself and about how
  234. you can contribute:
  235. * **Community:**
  236. :doc:`How to get involved <internals/contributing/index>` |
  237. :doc:`The release process <internals/release-process>` |
  238. :doc:`Team organization <internals/organization>` |
  239. :doc:`Meet the team <internals/team>` |
  240. :doc:`Current roles <internals/roles>` |
  241. :doc:`The Django source code repository <internals/git>` |
  242. :doc:`Security policies <internals/security>` |
  243. :doc:`Mailing lists <internals/mailing-lists>`
  244. * **Design philosophies:**
  245. :doc:`Overview <misc/design-philosophies>`
  246. * **Documentation:**
  247. :doc:`About this documentation <internals/contributing/writing-documentation>`
  248. * **Third-party distributions:**
  249. :doc:`Overview <misc/distributions>`
  250. * **Django over time:**
  251. :doc:`API stability <misc/api-stability>` |
  252. :doc:`Release notes and upgrading instructions <releases/index>` |
  253. :doc:`Deprecation Timeline <internals/deprecation>`