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:
parent
c7b49792f4
commit
107dd89385
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue