Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #18642 - Added a note suggesting the use of render() rather tha…

…n render_to_response() if you need RequestContext in your template.
  • Loading branch information...
commit f99ecaff064af334adfd9a690e77c24ed8b15cbd 1 parent 7089638
Tim Graham authored August 31, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  docs/ref/templates/api.txt
4  docs/ref/templates/api.txt
@@ -424,6 +424,10 @@ optional, third positional argument, ``processors``. In this example, the
424 424
                                       my_data_dictionary,
425 425
                                       context_instance=RequestContext(request))
426 426
 
  427
+    Alternatively, use the :meth:`~django.shortcuts.render()` shortcut which is
  428
+    the same as a call to :func:`~django.shortcuts.render_to_response()` with a
  429
+    context_instance argument that forces the use of a ``RequestContext``.
  430
+
427 431
 Here's what each of the default processors does:
428 432
 
429 433
 django.contrib.auth.context_processors.auth

0 notes on commit f99ecaf

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