<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: request</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/request.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2008-06-10T11:49:44+00:00</updated><author><name>Simon Willison</name></author><entry><title>Shortcutting render_to_response</title><link href="https://simonwillison.net/2008/Jun/10/fam/#atom-tag" rel="alternate"/><published>2008-06-10T11:49:44+00:00</published><updated>2008-06-10T11:49:44+00:00</updated><id>https://simonwillison.net/2008/Jun/10/fam/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://fi.am/entry/shortcutting-render_to_response/"&gt;Shortcutting render_to_response&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
I tend to use a simple wrapper function, but the other options described here are worth exploring. This is why I’m so keen on Django’s “take a request object, return a response object” philosophy—it makes it trivial to extend the framework in the direction you want.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/django"&gt;django&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/request"&gt;request&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/response"&gt;response&lt;/a&gt;&lt;/p&gt;



</summary><category term="django"/><category term="python"/><category term="request"/><category term="response"/></entry></feed>