index.txt 11 KB

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