mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26754 -- Documented django.template.context_processors.tz
This commit is contained in:
committed by
Baptiste Mispelon
parent
ac06cb0e56
commit
7003174fec
@@ -736,6 +736,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``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user