Using Django How to install Django Install Apache and Install the Django code ModelsAggregationManagersDatabase transactionsTablespacesDatabase instrumentation Handling HTTP requests Writing viewsFile UploadsGeneric viewsHow to use sessions HTML formsForms in DjangoMore about Django Form classesFurther topics The Django template language Class-based views Built-in class-based generic viewsUsing mixins with class-based viewsUsage in your URLconf Migrations Backend SupportDependenciesAdding migrations to appsConsiderations when removing model fieldsSquashing migrationsSupporting multiple Django versions Using files in modelsFile storage Writing and running testsAdvanced testing topics OverviewUsage Setting up the cacheThe per-view cacheThe low-level cache APIUsing Vary headersOrder of MIDDLEWARE The decoratorUsing the decorators with other HTTP methods Cryptographic signing Using the low-level API Quick examplesend_mass_mail()Preventing header injectionEmail backends Internationalization and localization Definitions A quick logging primerConfiguring logging Pagination ExampleUsing Paginator in a view function Cross site scripting (XSS) protectionSQL injection protectionSSL/HTTPSReferrer policyUser-uploaded content Performance and optimization General approachesUnderstanding lazinessHTTP performanceUsing different versions of available software Serializing dataSerialization formats Django settings Designating the settingsUsing settings in Python codeSecurityCreating your own settings Signals Defining and sending signals System check framework External packages Comments Asynchronous support Async safety