==================== Django documentation ==================== .. rubric:: Everything you need to know about Django. .. _index-first-steps: 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: Requests and responses ` | :doc:`Part 2: Models and the admin site ` | :doc:`Part 3: Views and templates ` | :doc:`Part 4: Forms and generic views ` | :doc:`Part 5: Testing ` | :doc:`Part 6: Static files ` | :doc:`Part 7: Customizing the admin site ` * **Advanced Tutorials:** :doc:`How to write reusable apps ` | :doc:`Writing your first patch for 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`_. * Report bugs with Django in our `ticket tracker`_. .. _archives: https://groups.google.com/group/django-users/ .. _post a question: https://groups.google.com/d/forum/django-users .. _#django IRC channel: irc://irc.freenode.net/django .. _ticket tracker: https://code.djangoproject.com/ How the documentation is organized ================================== Django has a lot of documentation. A high-level overview of how it's organized will help you know where to look for certain things: * :doc:`Tutorials ` take you by the hand through a series of steps to create a Web application. Start here if you're new to Django or Web application development. Also look at the ":ref:`index-first-steps`" below. * :doc:`Topic guides ` discuss key topics and concepts at a fairly high level and provide useful background information and explanation. * :doc:`Reference guides ` contain technical reference for APIs and other aspects of Django's machinery. They describe how it works and how to use it but assume that you have a basic understanding of key concepts. * :doc:`How-to guides ` are recipes. They guide you through the steps involved in addressing key problems and use-cases. They are more advanced than tutorials and assume some knowledge of how Django works. 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:`Introduction to models ` | :doc:`Field types ` | :doc:`Indexes ` | :doc:`Meta options ` | :doc:`Model class ` * **QuerySets:** :doc:`Making queries ` | :doc:`QuerySet method reference ` | :doc:`Lookup expressions ` * **Model instances:** :doc:`Instance methods ` | :doc:`Accessing related objects ` * **Migrations:** :doc:`Introduction to Migrations` | :doc:`Operations reference ` | :doc:`SchemaEditor ` | :doc:`Writing migrations ` * **Advanced:** :doc:`Managers ` | :doc:`Raw SQL ` | :doc:`Transactions ` | :doc:`Aggregation ` | :doc:`Search ` | :doc:`Custom fields ` | :doc:`Multiple databases ` | :doc:`Custom lookups ` | :doc:`Query Expressions ` | :doc:`Conditional Expressions ` | :doc:`Database Functions ` | :doc:`Asynchronous Support ` * **Other:** :doc:`Supported databases ` | :doc:`Legacy databases ` | :doc:`Providing initial data ` | :doc:`Optimize database access ` | :doc:`PostgreSQL specific features ` 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: * **The basics:** :doc:`Overview ` * **For designers:** :doc:`Language overview ` | :doc:`Built-in tags and filters ` | :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 ` 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 ` * **Applications:** :doc:`Overview ` * **Exceptions:** :doc:`Overview ` * **django-admin and manage.py:** :doc:`Overview ` | :doc:`Adding custom commands ` * **Testing:** :doc:`Introduction ` | :doc:`Writing and running tests ` | :doc:`Included testing tools ` | :doc:`Advanced topics ` * **Deployment:** :doc:`Overview ` | :doc:`WSGI servers ` | :doc:`ASGI servers ` | :doc:`Deploying static files ` | :doc:`Tracking code errors by email ` | :doc:`Deployment checklist ` 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:`Disclosed security issues in Django ` * :doc:`Clickjacking protection ` * :doc:`Cross Site Request Forgery protection ` * :doc:`Cryptographic signing ` * :ref:`Security Middleware ` 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:`Localized Web UI formatting and form input ` * :doc:`Time zones ` Performance and optimization ============================ There are a variety of techniques and tools that can help get your code running more efficiently - faster, and using fewer system resources. * :doc:`Performance and optimization overview ` 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: * **Authentication:** :doc:`Overview ` | :doc:`Using the authentication system ` | :doc:`Password management ` | :doc:`Customizing authentication ` | :doc:`API Reference ` * :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:`System check framework ` * :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 organization ` | :doc:`The Django source code repository ` | :doc:`Security policies ` | :doc:`Mailing lists ` * **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 `