mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Moved context_processors from django.core to django.template.
This commit is contained in:
parent
c599f233b1
commit
92e8f1f302
20 changed files with 152 additions and 134 deletions
|
@ -311,7 +311,7 @@ time zone is unset, the default time zone applies.
|
|||
get_current_timezone
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
When the ``django.core.context_processors.tz`` context processor is
|
||||
When the ``django.template.context_processors.tz`` context processor is
|
||||
enabled -- by default, it is -- each :class:`~django.template.RequestContext`
|
||||
contains a ``TIME_ZONE`` variable that provides the name of the current time
|
||||
zone.
|
||||
|
|
|
@ -28,7 +28,7 @@ bit of i18n-related overhead in certain places of the framework. If you don't
|
|||
use internationalization, you should take the two seconds to set
|
||||
:setting:`USE_I18N = False <USE_I18N>` in your settings file. Then Django will
|
||||
make some optimizations so as not to load the internationalization machinery.
|
||||
You'll probably also want to remove ``'django.core.context_processors.i18n'``
|
||||
You'll probably also want to remove ``'django.template.context_processors.i18n'``
|
||||
from your :setting:`TEMPLATE_CONTEXT_PROCESSORS` setting.
|
||||
|
||||
.. note::
|
||||
|
@ -1509,7 +1509,7 @@ back to the previous page.
|
|||
Make sure that the following item is in your
|
||||
:setting:`TEMPLATE_CONTEXT_PROCESSORS` list in your settings file::
|
||||
|
||||
'django.core.context_processors.i18n'
|
||||
'django.template.context_processors.i18n'
|
||||
|
||||
Activate this view by adding the following line to your URLconf::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue