Permalink
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...
1 parent c7b4979 commit 107dd8938568ba5e47c732366698a7668040ffa1 @adrianholovaty adrianholovaty committed Jul 3, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/templates_python.txt
View
3 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

0 comments on commit 107dd89

Please sign in to comment.