index.txt 12 KB

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