summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-07-03 19:20:56 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-07-03 19:20:56 +0000
commit107dd8938568ba5e47c732366698a7668040ffa1 (patch)
tree65d661c77c71dff7924a80d786dbd7c19f6cd659 /docs
parentc7b49792f4de416c903965ff5d029a566b8d7ef8 (diff)
Fixed an error in a RequestContext example in docs/templates_python.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/templates_python.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt
index 7171f32612..b79065f8b4 100644
--- a/docs/templates_python.txt
+++ b/docs/templates_python.txt
@@ -311,9 +311,10 @@ optional, third positional argument, ``processors``. In this example, the
def some_view(request):
# ...
- return RequestContext(request, {
+ c = RequestContext(request, {
'foo': 'bar',
}, [ip_address_processor])
+ return t.render(c)
Note::
If you're using Django's ``render_to_response()`` shortcut to populate a