index.txt 12 KB

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