1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +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

@@ -187,7 +187,7 @@ class RenderContext(BaseContext):
class RequestContext(Context):
"""
This subclass of template.Context automatically populates itself using
the processors defined in TEMPLATE_CONTEXT_PROCESSORS.
the processors defined in the engine's configuration.
Additional processors can be specified as a list of callables
using the "processors" keyword argument.
"""

View File

@@ -3,9 +3,10 @@ A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.
These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by
RequestContext.
These are referenced from the 'context_processors' option of the configuration
of a DjangoTemplates backend and used by RequestContext.
"""
from __future__ import unicode_literals
from django.conf import settings