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

@@ -61,11 +61,10 @@ TemplateResponseMixin
.. versionchanged:: 1.8
In older versions of Django, ``TemplateResponse`` used
:class:`~django.template.RequestContext` in such a way that
callables defined in :setting:`TEMPLATE_CONTEXT_PROCESSORS` would
override template variables defined in your views. For example, if
you subclassed :class:`DetailView
<django.views.generic.detail.DetailView>` and
:class:`~django.template.RequestContext` in such a way that values
from template context processors would override template variables
defined in your views. For example, if you subclassed
:class:`DetailView <django.views.generic.detail.DetailView>` and
set ``context_object_name`` to ``user``, the
``django.contrib.auth.context_processors.auth`` context processor
would overwrite your variable with the current user. Now, for