diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-01-27 15:55:04 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-01-27 15:55:04 +0000 |
| commit | 1dc65cb6ab158fae3ccae55512a4f49ec3654758 (patch) | |
| tree | b27b396b3ae955135e9cdc8c33a1e44a60f6ef81 /docs | |
| parent | e35655081f105c727d6d57db75ae1b99aa22b60d (diff) | |
Fixed #1271 -- Added a 'request' template context processor, which is not activated by default.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates_python.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt index bbf7c8f745..efbd648cf1 100644 --- a/docs/templates_python.txt +++ b/docs/templates_python.txt @@ -329,6 +329,16 @@ See the `internationalization docs`_ for more. .. _LANGUAGE_CODE setting: http://www.djangoproject.com/documentation/settings/#language-code .. _internationalization docs: http://www.djangoproject.com/documentation/i18n/ +django.core.context_processors.request +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +**New in Django development version** + +If ``TEMPLATE_CONTEXT_PROCESSORS`` contains this processor, every +``DjangoContext`` will contain a variable ``request``, which is the current +`HttpRequest object`_. Note that this processor is not enabled by default; +you'll have to activate it. + Loading templates ----------------- |
