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
This commit is contained in:
Adrian Holovaty 2007-07-03 19:20:56 +00:00
parent c7b49792f4
commit 107dd89385
1 changed files with 2 additions and 1 deletions

View File

@ -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