djangodocs.org

255 sections across all versions Narrow to Django 6.0 (current) →

Features removed in 1.8

Release notes Django 1.8 release notes

These features have reached the end of their deprecation cycle and are removed in Django 1.8. See Features deprecated in 1.6 for details, including how to remove usage of these features. django.contrib.comments is removed.

Miscellaneous

Release notes Django 2.0 release notes Features deprecated in 2.0

The SessionAuthenticationMiddleware class is removed. It provided no functionality since session authentication is unconditionally enabled in Django 1.10. The default HTTP error handlers (handler404, etc.) are now callables instead of dotted Python path strings.

Models

Release notes Django 6.1 release notes Backwards incompatible changes in 6.1

The iexact=None lookup on JSONField key transforms now matches JSON null, to match the behavior of exact=None on key transforms. Previously, it was interpreted as an isnull lookup.

dev

SESSION_CACHE_ALIAS

Reference Settings Sessions

Default: 'default' If you’re using cache-based session storage, this selects the cache to use.

Cache arguments

Topic guide Django’s cache framework Setting up the cache

Here’s an example configuration for a redis based backend that selects database 10 (by default Redis ships with 16 logical databases), and sets a custom connection pool class (redis.ConnectionPool is used by default):

5.1 5.2 6.0 dev

Cache arguments

Topic guide Django’s cache framework Setting up the cache

Here’s an example configuration for a redis based backend that selects database 10 (by default Redis ships with 16 logical databases), specifies a parser class (redis.connection.HiredisParser will be used by default if the hiredis-py package is installed), and sets a …

4.2 5.0

Topic guide Making queries Retrieving objectsRetrieving specific objects with filters

Each time you refine a QuerySet, you get a brand-new QuerySet that is in no way bound to the previous QuerySet. Each refinement creates a separate and distinct QuerySet that can be stored, used and reused.

Internals Django’s security policies Reporting security issuesReporting guidelines

Reports based on a failure to sanitize user input are not valid security vulnerabilities. It is the developer’s responsibility to properly handle user input. This principle is explained in our security documentation.

5.1 5.2 6.0 dev

Topic guide Time zones Concepts

The current time zone is the equivalent of the current locale for translations. However, there’s no equivalent of the Accept-Language HTTP header that Django could use to determine the user’s time zone automatically. Instead, Django provides time zone selection functions.

Topic guide Translation Miscellaneous

set_language(request)[source] As a convenience, Django comes with a view, django.views.i18n.set_language(), that sets a user’s language preference and redirects to a given URL or, by default, back to the previous page.

django.contrib.admin

Release notes Django 2.0 release notes What’s new in Django 2.0Minor features

The new ModelAdmin.autocomplete_fields attribute and ModelAdmin.get_autocomplete_fields() method allow using a Select2 search widget for ForeignKey and ManyToManyField.

django.contrib.admin

Release notes Django 3.0 release notes Backwards incompatible changes in 3.0

Added support for the admin_order_field attribute on properties in ModelAdmin.list_display. The new ModelAdmin.get_inlines() method allows specifying the inlines based on the request or model instance. Select2 library is upgraded from version 4.0.3 to 4.0.7.

django.contrib.admin

Release notes Django 3.1 release notes What’s new in Django 3.1Minor features

The new django.contrib.admin.EmptyFieldListFilter for ModelAdmin.list_filter allows filtering on empty values (empty strings and nulls) in the admin changelist view. Filters in the right sidebar of the admin changelist view now contain a link to clear all filters.