Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored July 03, 2007

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  docs/templates_python.txt
3  docs/templates_python.txt
@@ -311,9 +311,10 @@ optional, third positional argument, ``processors``. In this example, the
311 311
 
312 312
     def some_view(request):
313 313
         # ...
314  
-        return RequestContext(request, {
  314
+        c = RequestContext(request, {
315 315
             'foo': 'bar',
316 316
         }, [ip_address_processor])
  317
+		return t.render(c)
317 318
 
318 319
 Note::
319 320
     If you're using Django's ``render_to_response()`` shortcut to populate a

0 notes on commit 107dd89

Please sign in to comment.
Something went wrong with that request. Please try again.