2
0

index.txt 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. .. _index:
  2. ====================
  3. Django documentation
  4. ====================
  5. .. rubric:: Everything you need to know about Django (and then some).
  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 of the django-users mailing list: http://groups.google.com/group/django-users/
  18. .. _post a question: http://groups.google.com/group/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. The model layer
  34. ===============
  35. Django provides an abstraction layer (the "models") for structuring and
  36. manipulating the data of your Web application. Learn more about it below:
  37. * **Models:**
  38. :doc:`Model syntax <topics/db/models>` |
  39. :doc:`Field types <ref/models/fields>` |
  40. :doc:`Meta options <ref/models/options>`
  41. * **QuerySets:**
  42. :doc:`Executing queries <topics/db/queries>` |
  43. :doc:`QuerySet method reference <ref/models/querysets>`
  44. * **Model instances:**
  45. :doc:`Instance methods <ref/models/instances>` |
  46. :doc:`Accessing related objects <ref/models/relations>`
  47. * **Advanced:**
  48. :doc:`Managers <topics/db/managers>` |
  49. :doc:`Raw SQL <topics/db/sql>` |
  50. :doc:`Transactions <topics/db/transactions>` |
  51. :doc:`Aggregation <topics/db/aggregation>` |
  52. :doc:`Custom fields <howto/custom-model-fields>` |
  53. :doc:`Multiple databases <topics/db/multi-db>`
  54. * **Other:**
  55. :doc:`Supported databases <ref/databases>` |
  56. :doc:`Legacy databases <howto/legacy-databases>` |
  57. :doc:`Providing initial data <howto/initial-data>` |
  58. :doc:`Optimize database access <topics/db/optimization>`
  59. The view layer
  60. ==============
  61. Django has the concept of "views" to encapsulate the logic responsible for
  62. processing a user's request and for returning the response. Find all you need
  63. to know about views via the links below:
  64. * **The basics:**
  65. :doc:`URLconfs <topics/http/urls>` |
  66. :doc:`View functions <topics/http/views>` |
  67. :doc:`Shortcuts <topics/http/shortcuts>` |
  68. :doc:`Decorators <topics/http/decorators>`
  69. * **Reference:**
  70. :doc:`Request/response objects <ref/request-response>` |
  71. :doc:`TemplateResponse objects <ref/template-response>`
  72. * **File uploads:**
  73. :doc:`Overview <topics/http/file-uploads>` |
  74. :doc:`File objects <ref/files/file>` |
  75. :doc:`Storage API <ref/files/storage>` |
  76. :doc:`Managing files <topics/files>` |
  77. :doc:`Custom storage <howto/custom-file-storage>`
  78. * **Class-based views:**
  79. :doc:`Overview <topics/class-based-views/index>` |
  80. :doc:`Built-in display views <topics/class-based-views/generic-display>` |
  81. :doc:`Built-in editing views <topics/class-based-views/generic-editing>` |
  82. :doc:`Using mixins <topics/class-based-views/mixins>` |
  83. :doc:`API reference <ref/class-based-views/index>`
  84. * **Advanced:**
  85. :doc:`Generating CSV <howto/outputting-csv>` |
  86. :doc:`Generating PDF <howto/outputting-pdf>`
  87. * **Middleware:**
  88. :doc:`Overview <topics/http/middleware>` |
  89. :doc:`Built-in middleware classes <ref/middleware>`
  90. The template layer
  91. ==================
  92. The template layer provides a designer-friendly syntax for rendering the
  93. information to be presented to the user. Learn how this syntax can be used by
  94. designers and how it can be extended by programmers:
  95. * **For designers:**
  96. :doc:`Syntax overview <topics/templates>` |
  97. :doc:`Built-in tags and filters <ref/templates/builtins>` |
  98. :doc:`Web design helpers <ref/contrib/webdesign>` |
  99. :doc:`Humanization <ref/contrib/humanize>`
  100. * **For programmers:**
  101. :doc:`Template API <ref/templates/api>` |
  102. :doc:`Custom tags and filters <howto/custom-template-tags>`
  103. Forms
  104. =====
  105. Django provides a rich framework to facilitate the creation of forms and the
  106. manipulation of form data.
  107. * **The basics:**
  108. :doc:`Overview <topics/forms/index>` |
  109. :doc:`Form API <ref/forms/api>` |
  110. :doc:`Built-in fields <ref/forms/fields>` |
  111. :doc:`Built-in widgets <ref/forms/widgets>`
  112. * **Advanced:**
  113. :doc:`Forms for models <topics/forms/modelforms>` |
  114. :doc:`Integrating media <topics/forms/media>` |
  115. :doc:`Formsets <topics/forms/formsets>` |
  116. :doc:`Customizing validation <ref/forms/validation>`
  117. * **Extras:**
  118. :doc:`Form preview <ref/contrib/formtools/form-preview>` |
  119. :doc:`Form wizard <ref/contrib/formtools/form-wizard>`
  120. The development process
  121. =======================
  122. Learn about the various components and tools to help you in the development and
  123. testing of Django applications:
  124. * **Settings:**
  125. :doc:`Overview <topics/settings>` |
  126. :doc:`Full list of settings <ref/settings>`
  127. * **Exceptions:**
  128. :doc:`Overview <ref/exceptions>`
  129. * **django-admin.py and manage.py:**
  130. :doc:`Overview <ref/django-admin>` |
  131. :doc:`Adding custom commands <howto/custom-management-commands>`
  132. * **Testing:** :doc:`Overview <topics/testing>`
  133. * **Deployment:**
  134. :doc:`Overview <howto/deployment/index>` |
  135. :doc:`WSGI servers <howto/deployment/wsgi/index>` |
  136. :doc:`FastCGI/SCGI/AJP <howto/deployment/fastcgi>` |
  137. :doc:`Apache authentication <howto/apache-auth>` |
  138. :doc:`Handling static files <howto/static-files>` |
  139. :doc:`Tracking code errors by email <howto/error-reporting>`
  140. The admin
  141. =========
  142. Find all you need to know about the automated admin interface, one of Django's
  143. most popular features:
  144. * :doc:`Admin site <ref/contrib/admin/index>`
  145. * :doc:`Admin actions <ref/contrib/admin/actions>`
  146. * :doc:`Admin documentation generator<ref/contrib/admin/admindocs>`
  147. Security
  148. ========
  149. Security is a topic of paramount importance in the development of Web
  150. applications and Django provides multiple protection tools and mechanisms:
  151. * :doc:`Security overview <topics/security>`
  152. * :doc:`Clickjacking protection <ref/clickjacking>`
  153. * :doc:`Cross Site Request Forgery protection <ref/contrib/csrf>`
  154. * :doc:`Cryptographic signing <topics/signing>`
  155. Internationalization and localization
  156. =====================================
  157. Django offers a robust internationalization and localization framework to
  158. assist you in the development of applications for multiple languages and world
  159. regions:
  160. * :doc:`Internationalization <topics/i18n/index>`
  161. * :doc:`"Local flavor" <ref/contrib/localflavor>`
  162. Python compatibility
  163. ====================
  164. Django aims to be compatible with multiple different flavors and versions of
  165. Python:
  166. * :doc:`Jython support <howto/jython>`
  167. * :doc:`Python 3 compatibility <topics/python3>`
  168. Geographic framework
  169. ====================
  170. :doc:`GeoDjango <ref/contrib/gis/index>` intends to be a world-class geographic
  171. Web framework. Its goal is to make it as easy as possible to build GIS Web
  172. applications and harness the power of spatially enabled data.
  173. Common Web application tools
  174. ============================
  175. Django offers multiple tools commonly needed in the development of Web
  176. applications:
  177. * :doc:`Authentication <topics/auth>`
  178. * :doc:`Caching <topics/cache>`
  179. * :doc:`Logging <topics/logging>`
  180. * :doc:`Sending e-mails <topics/email>`
  181. * :doc:`Syndication feeds (RSS/Atom) <ref/contrib/syndication>`
  182. * :doc:`Comments <ref/contrib/comments/index>`, :doc:`comment moderation <ref/contrib/comments/moderation>` and :doc:`custom comments <ref/contrib/comments/custom>`
  183. * :doc:`Pagination <topics/pagination>`
  184. * :doc:`Messages framework <ref/contrib/messages>`
  185. * :doc:`Serialization <topics/serialization>`
  186. * :doc:`Sessions <topics/http/sessions>`
  187. * :doc:`Sitemaps <ref/contrib/sitemaps>`
  188. * :doc:`Static files management <ref/contrib/staticfiles>`
  189. * :doc:`Data validation <ref/validators>`
  190. Other core functionalities
  191. ==========================
  192. Learn about some other core functionalities of the Django framework:
  193. * :doc:`Conditional content processing <topics/conditional-view-processing>`
  194. * :doc:`Content types and generic relations <ref/contrib/contenttypes>`
  195. * :doc:`Databrowse <ref/contrib/databrowse>`
  196. * :doc:`Flatpages <ref/contrib/flatpages>`
  197. * :doc:`Redirects <ref/contrib/redirects>`
  198. * :doc:`Signals <topics/signals>`
  199. * :doc:`The sites framework <ref/contrib/sites>`
  200. * :doc:`Unicode in Django <ref/unicode>`
  201. The Django open-source project
  202. ==============================
  203. Learn about the development process for the Django project itself and about how
  204. you can contribute:
  205. * **Community:**
  206. :doc:`How to get involved <internals/contributing/index>` |
  207. :doc:`The release process <internals/release-process>` |
  208. :doc:`Team of committers <internals/committers>` |
  209. :doc:`The Django source code repository <internals/git>` |
  210. :doc:`Security policies <internals/security>`
  211. * **Design philosophies:**
  212. :doc:`Overview <misc/design-philosophies>`
  213. * **Documentation:**
  214. :doc:`About this documentation <internals/contributing/writing-documentation>`
  215. * **Third-party distributions:**
  216. :doc:`Overview <misc/distributions>`
  217. * **Django over time:**
  218. :doc:`API stability <misc/api-stability>` |
  219. :doc:`Release notes and upgrading instructions <releases/index>` |
  220. :doc:`Deprecation Timeline <internals/deprecation>`