mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Deprecated TEMPLATE_CONTEXT_PROCESSORS.
This commit is contained in:
@@ -36,13 +36,14 @@ already contains all the settings required to enable message functionality:
|
||||
must be enabled and appear before ``MessageMiddleware`` in
|
||||
:setting:`MIDDLEWARE_CLASSES`.
|
||||
|
||||
* :setting:`TEMPLATE_CONTEXT_PROCESSORS` contains
|
||||
* The ``'context_processors'`` option of the ``DjangoTemplates`` backend
|
||||
defined in your :setting:`TEMPLATES` setting contains
|
||||
``'django.contrib.messages.context_processors.messages'``.
|
||||
|
||||
If you don't want to use messages, you can remove
|
||||
``'django.contrib.messages'`` from your :setting:`INSTALLED_APPS`, the
|
||||
``MessageMiddleware`` line from :setting:`MIDDLEWARE_CLASSES`, and the
|
||||
``messages`` context processor from :setting:`TEMPLATE_CONTEXT_PROCESSORS`.
|
||||
``messages`` context processor from :setting:`TEMPLATES`.
|
||||
|
||||
Configuring the message engine
|
||||
==============================
|
||||
|
||||
Reference in New Issue
Block a user