<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: httpresponse</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/httpresponse.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2007-12-03T20:44:29+00:00</updated><author><name>Simon Willison</name></author><entry><title>Quoting Alex de Landgraaf</title><link href="https://simonwillison.net/2007/Dec/3/integrating/#atom-tag" rel="alternate"/><published>2007-12-03T20:44:29+00:00</published><updated>2007-12-03T20:44:29+00:00</updated><id>https://simonwillison.net/2007/Dec/3/integrating/#atom-tag</id><summary type="html">
    &lt;blockquote cite="http://www.alextreme.org/drupal/?q=python_pychart_django"&gt;&lt;p&gt;If you only remember one thing about handling non-HTML output via Django: know that you can use the HttpResponse object as if it were a file. Writing to such an object and returning it will give you the output you wrote. It's a very simple concept, but one that translates well to third-party libraries.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p class="cite"&gt;&amp;mdash; &lt;a href="http://www.alextreme.org/drupal/?q=python_pychart_django"&gt;Alex de Landgraaf&lt;/a&gt;&lt;/p&gt;

    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/alex-de-landgraaf"&gt;alex-de-landgraaf&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/django"&gt;django&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/httpresponse"&gt;httpresponse&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/views"&gt;views&lt;/a&gt;&lt;/p&gt;



</summary><category term="alex-de-landgraaf"/><category term="django"/><category term="httpresponse"/><category term="python"/><category term="views"/></entry></feed>