summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-08-31 20:24:33 -0400
committerTim Graham <timograham@gmail.com>2012-08-31 20:24:33 -0400
commitf99ecaff064af334adfd9a690e77c24ed8b15cbd (patch)
treef9b8f1fcef59d5b1362d21998a898a4cc3292ec0 /docs/ref
parent70896386ecc1808283e1f2f1fb9ced3bb0ac8301 (diff)
Fixed #18642 - Added a note suggesting the use of render() rather than render_to_response() if you need RequestContext in your template.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/templates/api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index c52194e6b7..9d2954d22f 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -424,6 +424,10 @@ optional, third positional argument, ``processors``. In this example, the
my_data_dictionary,
context_instance=RequestContext(request))
+ Alternatively, use the :meth:`~django.shortcuts.render()` shortcut which is
+ the same as a call to :func:`~django.shortcuts.render_to_response()` with a
+ context_instance argument that forces the use of a ``RequestContext``.
+
Here's what each of the default processors does:
django.contrib.auth.context_processors.auth