1
0
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:
Aymeric Augustin
2014-12-17 23:36:32 +01:00
parent d3205e3e2e
commit 9eb4f28e89
19 changed files with 142 additions and 88 deletions

View File

@@ -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
==============================