.. _index: ==================== Django documentation ==================== .. rubric:: Everything you need to know about Django. Getting help ============ Having trouble? We'd like to help! * Try the :doc:`FAQ ` -- it's got answers to many common questions. * Looking for specific information? Try the :ref:`genindex`, :ref:`modindex` or the :doc:`detailed table of contents `. * Search for information in the `archives of the django-users mailing list`_, or `post a question`_. * Ask a question in the `#django IRC channel`_, or search the `IRC logs`_ to see if it's been asked before. * Report bugs with Django in our `ticket tracker`_. .. _archives of the django-users mailing list: http://groups.google.com/group/django-users/ .. _post a question: http://groups.google.com/group/django-users/ .. _#django IRC channel: irc://irc.freenode.net/django .. _IRC logs: http://django-irc-logs.com/ .. _ticket tracker: https://code.djangoproject.com/ First steps =========== Are you new to Django or to programming? This is the place to start! * **From scratch:** :doc:`Overview ` | :doc:`Installation ` * **Tutorial:** :doc:`Part 1 ` | :doc:`Part 2 ` | :doc:`Part 3 ` | :doc:`Part 4 ` | :doc:`Part 5 ` | :doc:`Part 6 ` * **Advanced Tutorials:** :doc:`How to write reusable apps ` | :doc:`Writing your first patch for Django ` The model layer =============== Django provides an abstraction layer (the "models") for structuring and manipulating the data of your Web application. Learn more about it below: * **Models:** :doc:`Model syntax ` | :doc:`Field types ` | :doc:`Meta options ` * **QuerySets:** :doc:`Executing queries ` | :doc:`QuerySet method reference ` * **Model instances:** :doc:`Instance methods ` | :doc:`Accessing related objects ` * **Advanced:** :doc:`Managers ` | :doc:`Raw SQL ` | :doc:`Transactions ` | :doc:`Aggregation ` | :doc:`Custom fields ` | :doc:`Multiple databases ` * **Other:** :doc:`Supported databases ` | :doc:`Legacy databases ` | :doc:`Providing initial data ` | :doc:`Optimize database access ` The view layer ============== Django has the concept of "views" to encapsulate the logic responsible for processing a user's request and for returning the response. Find all you need to know about views via the links below: * **The basics:** :doc:`URLconfs ` | :doc:`View functions ` | :doc:`Shortcuts ` | :doc:`Decorators ` * **Reference:** :doc:`Built-in Views ` | :doc:`Request/response objects ` | :doc:`TemplateResponse objects ` * **File uploads:** :doc:`Overview ` | :doc:`File objects ` | :doc:`Storage API ` | :doc:`Managing files ` | :doc:`Custom storage ` * **Class-based views:** :doc:`Overview ` | :doc:`Built-in display views ` | :doc:`Built-in editing views ` | :doc:`Using mixins ` | :doc:`API reference ` | :doc:`Flattened index` * **Advanced:** :doc:`Generating CSV ` | :doc:`Generating PDF ` * **Middleware:** :doc:`Overview ` | :doc:`Built-in middleware classes ` The template layer ================== The template layer provides a designer-friendly syntax for rendering the information to be presented to the user. Learn how this syntax can be used by designers and how it can be extended by programmers: * **For designers:** :doc:`Syntax overview ` | :doc:`Built-in tags and filters ` | :doc:`Web design helpers ` | :doc:`Humanization ` * **For programmers:** :doc:`Template API ` | :doc:`Custom tags and filters ` Forms ===== Django provides a rich framework to facilitate the creation of forms and the manipulation of form data. * **The basics:** :doc:`Overview ` | :doc:`Form API ` | :doc:`Built-in fields ` | :doc:`Built-in widgets ` * **Advanced:** :doc:`Forms for models ` | :doc:`Integrating media ` | :doc:`Formsets ` | :doc:`Customizing validation ` * **Extras:** :doc:`Form preview ` | :doc:`Form wizard ` The development process ======================= Learn about the various components and tools to help you in the development and testing of Django applications: * **Settings:** :doc:`Overview ` | :doc:`Full list of settings ` * **Exceptions:** :doc:`Overview ` * **django-admin.py and manage.py:** :doc:`Overview ` | :doc:`Adding custom commands ` * **Testing:** :doc:`Introduction ` | :doc:`Writing and running tests ` | :doc:`Advanced topics ` * **Deployment:** :doc:`Overview ` | :doc:`WSGI servers ` | :doc:`FastCGI/SCGI/AJP ` | :doc:`Deploying static files ` | :doc:`Tracking code errors by email ` The admin ========= Find all you need to know about the automated admin interface, one of Django's most popular features: * :doc:`Admin site ` * :doc:`Admin actions ` * :doc:`Admin documentation generator` Security ======== Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms: * :doc:`Security overview ` * :doc:`Clickjacking protection ` * :doc:`Cross Site Request Forgery protection ` * :doc:`Cryptographic signing ` Internationalization and localization ===================================== Django offers a robust internationalization and localization framework to assist you in the development of applications for multiple languages and world regions: * :doc:`Overview ` | :doc:`Internationalization ` | :ref:`Localization ` * :doc:`"Local flavor" ` * :doc:`Time zones ` Python compatibility ==================== Django aims to be compatible with multiple different flavors and versions of Python: * :doc:`Jython support ` * :doc:`Python 3 compatibility ` Geographic framework ==================== :doc:`GeoDjango ` intends to be a world-class geographic Web framework. Its goal is to make it as easy as possible to build GIS Web applications and harness the power of spatially enabled data. Common Web application tools ============================ Django offers multiple tools commonly needed in the development of Web applications: * :doc:`Authentication ` * :doc:`Caching ` * :doc:`Logging ` * :doc:`Sending emails ` * :doc:`Syndication feeds (RSS/Atom) ` * :doc:`Pagination ` * :doc:`Messages framework ` * :doc:`Serialization ` * :doc:`Sessions ` * :doc:`Sitemaps ` * :doc:`Static files management ` * :doc:`Data validation ` Other core functionalities ========================== Learn about some other core functionalities of the Django framework: * :doc:`Conditional content processing ` * :doc:`Content types and generic relations ` * :doc:`Flatpages ` * :doc:`Redirects ` * :doc:`Signals ` * :doc:`The sites framework ` * :doc:`Unicode in Django ` The Django open-source project ============================== Learn about the development process for the Django project itself and about how you can contribute: * **Community:** :doc:`How to get involved ` | :doc:`The release process ` | :doc:`Team of committers ` | :doc:`The Django source code repository ` | :doc:`Security policies ` * **Design philosophies:** :doc:`Overview ` * **Documentation:** :doc:`About this documentation ` * **Third-party distributions:** :doc:`Overview ` * **Django over time:** :doc:`API stability ` | :doc:`Release notes and upgrading instructions ` | :doc:`Deprecation Timeline `