From 107dd8938568ba5e47c732366698a7668040ffa1 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 3 Jul 2007 19:20:56 +0000 Subject: [PATCH] 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 --- docs/templates_python.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/templates_python.txt b/docs/templates_python.txt index 7171f32612..b79065f8b4 100644 --- a/docs/templates_python.txt +++ b/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