Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 107dd8938568ba5e47c732366698a7668040ffa1 1 parent c7b4979
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  docs/templates_python.txt
3  docs/templates_python.txt
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.