index.txt 12 KB

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