mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
[1.10.x] Fixed #26754 -- Documented django.template.context_processors.tz
Backport of 7003174fec
from master
This commit is contained in:
parent
8f91c42b58
commit
61bcf04132
2 changed files with 11 additions and 3 deletions
|
@ -746,6 +746,14 @@ tag for protection against :doc:`Cross Site Request Forgeries
|
|||
If this processor is enabled, every ``RequestContext`` will contain a variable
|
||||
``request``, which is the current :class:`~django.http.HttpRequest`.
|
||||
|
||||
``django.template.context_processors.tz``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. function:: tz
|
||||
|
||||
If this processor is enabled, every ``RequestContext`` will contain a variable
|
||||
``TIME_ZONE``, providing the name of the currently active time zone.
|
||||
|
||||
``django.contrib.messages.context_processors.messages``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue