<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Django Render To Response Hack</title>
	<atom:link href="http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/</link>
	<description>kungpow programming</description>
	<lastBuildDate>Fri, 28 May 2010 00:41:12 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mattd</title>
		<link>http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/comment-page-1/#comment-267</link>
		<dc:creator>mattd</dc:creator>
		<pubDate>Mon, 17 Aug 2009 01:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/#comment-267</guid>
		<description>This post is pretty old. I&#039;m not sure that at the time I wrote it that that was the case. That being said good to know thx :)</description>
		<content:encoded><![CDATA[<p>This post is pretty old. I&#8217;m not sure that at the time I wrote it that that was the case. That being said good to know thx <img src='http://www.ninjacipher.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Lockwood</title>
		<link>http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/comment-page-1/#comment-266</link>
		<dc:creator>Phil Lockwood</dc:creator>
		<pubDate>Mon, 17 Aug 2009 01:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/#comment-266</guid>
		<description>From the source, render_to_response returns a Response object:

return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)

so the following should work as well:

response = render_to_response(foo)
response.set_cookie(bar ...)
return response</description>
		<content:encoded><![CDATA[<p>From the source, render_to_response returns a Response object:</p>
<p>return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)</p>
<p>so the following should work as well:</p>
<p>response = render_to_response(foo)<br />
response.set_cookie(bar &#8230;)<br />
return response</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/comment-page-1/#comment-258</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 02 Jun 2009 20:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/#comment-258</guid>
		<description>Thanks dude, this works great!</description>
		<content:encoded><![CDATA[<p>Thanks dude, this works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rene</title>
		<link>http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/comment-page-1/#comment-62</link>
		<dc:creator>rene</dc:creator>
		<pubDate>Wed, 09 Apr 2008 08:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ninjacipher.com/2007/12/29/django-render-to-response-hack/#comment-62</guid>
		<description>render_response() works well for me... Cheers!

--
Rene</description>
		<content:encoded><![CDATA[<p>render_response() works well for me&#8230; Cheers!</p>
<p>&#8211;<br />
Rene</p>
]]></content:encoded>
	</item>
</channel>
</rss>
