djangosnippets.org: Latest snippets tagged with 'simplified'https://djangosnippets.org/tags/simplified/2009-12-30T13:05:31-06:00simplified render_to_response with RequestContext2009-12-30T13:05:31-06:00jasongreenhttps://djangosnippets.org/snippets/1846/<p>manything need to do with RequestContext, but it's too tedious.
use
<code>render_to_response("/my.html", {'key':value,},request)</code>
instead of
<code>render_to_response("/my.html", {'key':value,},new RequestContext(request))</code>
and you can also use
<code>render_to_response("/my.html", {'key':value,},new RequestContext(request))</code></p>
Freely redistributable