mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
[3.1.x] Refs #31034 -- Documented admin requires django.template.context_processors.request.
Required sinced24ba1be7a. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Backport ofe341bed606from master
This commit is contained in:
committed by
Mariusz Felisiak
parent
3913acdb29
commit
c9a9d042e5
@@ -34,11 +34,18 @@ If you're not using the default project template, here are the requirements:
|
||||
|
||||
#. Configure a :class:`~django.template.backends.django.DjangoTemplates`
|
||||
backend in your :setting:`TEMPLATES` setting with
|
||||
``django.contrib.auth.context_processors.auth`` and
|
||||
``django.contrib.auth.context_processors.auth``,
|
||||
``django.contrib.messages.context_processors.request``, and
|
||||
``django.contrib.messages.context_processors.messages`` in
|
||||
the ``'context_processors'`` option of :setting:`OPTIONS
|
||||
<TEMPLATES-OPTIONS>`.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
``django.contrib.messages.context_processors.request`` was added as a
|
||||
requirement in the ``'context_processors'`` option to support the new
|
||||
:attr:`.AdminSite.enable_nav_sidebar`.
|
||||
|
||||
#. If you've customized the :setting:`MIDDLEWARE` setting,
|
||||
:class:`django.contrib.auth.middleware.AuthenticationMiddleware` and
|
||||
:class:`django.contrib.messages.middleware.MessageMiddleware` must be
|
||||
|
||||
Reference in New Issue
Block a user