summaryrefslogtreecommitdiff
path: root/docs
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:26:02 -0400
commitc274a9cbd03bd3a90c2400b6efc63a59c5e64b33 (patch)
treeadc4a5ef95920dae0baf5ecf0fdfd1ec63c46c91 /docs
parent90fee02feeeed712a05d714d76d8acc07d3ed9a1 (diff)
[1.4.X] Fixed #18642 - Added a note suggesting the use of render() rather than render_to_response() if you need RequestContext in your template.
Backport of f99ecaff06 from master
Diffstat (limited to 'docs')
-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 47f7540191..1955bd4ead 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -419,6 +419,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