index.txt 11 KB

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