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:
@@ -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.
|
||||
"""
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user