<?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: Securing Django with SSL</title>
	<atom:link href="http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/</link>
	<description>Web development company specialising in Django and mobile development for clients around the world</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:40:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vovk Donets</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-224</link>
		<dc:creator>Vovk Donets</dc:creator>
		<pubDate>Fri, 27 Jan 2012 16:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-224</guid>
		<description>I have translated your post to russian language, i hope you dont mind =)

http://jetfix.ru/snippets/django-ssl-za-20/</description>
		<content:encoded><![CDATA[<p>I have translated your post to russian language, i hope you dont mind =)</p>
<p><a href="http://jetfix.ru/snippets/django-ssl-za-20/" rel="nofollow">http://jetfix.ru/snippets/django-ssl-za-20/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scot Hacker</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-216</link>
		<dc:creator>Scot Hacker</dc:creator>
		<pubDate>Fri, 02 Sep 2011 01:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-216</guid>
		<description>Dave Brown - You need two separate vhosts - one for the SSL portion of the site and one for the non-SSL. The redirect should go ONLY in the non-SSL vhost container.</description>
		<content:encoded><![CDATA[<p>Dave Brown &#8211; You need two separate vhosts &#8211; one for the SSL portion of the site and one for the non-SSL. The redirect should go ONLY in the non-SSL vhost container.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scot Hacker</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-215</link>
		<dc:creator>Scot Hacker</dc:creator>
		<pubDate>Fri, 02 Sep 2011 01:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-215</guid>
		<description>In the Apache example, you need the directive 

    RewriteEngine On

above the rule. Also, probably a bit cleaner to not hard-code the domain in there. So, this is what worked for me:

Location /admin
    RewriteEngine On
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
/Location

(angle brackets removed so this blog doesn&#039;t strip them out)</description>
		<content:encoded><![CDATA[<p>In the Apache example, you need the directive </p>
<p>    RewriteEngine On</p>
<p>above the rule. Also, probably a bit cleaner to not hard-code the domain in there. So, this is what worked for me:</p>
<p>Location /admin<br />
    RewriteEngine On<br />
    RewriteRule (.*) <a href="https://%" rel="nofollow">https://%</a>{HTTP_HOST}%{REQUEST_URI}<br />
/Location</p>
<p>(angle brackets removed so this blog doesn&#8217;t strip them out)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to force the use of SSL for some URL of my Django Application? - Admins Goodies</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-214</link>
		<dc:creator>How to force the use of SSL for some URL of my Django Application? - Admins Goodies</dc:creator>
		<pubDate>Sun, 21 Aug 2011 18:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-214</guid>
		<description>[...] http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/" rel="nofollow">http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Barnham</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-210</link>
		<dc:creator>Scott Barnham</dc:creator>
		<pubDate>Wed, 22 Jun 2011 10:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-210</guid>
		<description>It would be worth checking &lt;code&gt;is_secure()&lt;/code&gt;, though if that&#039;s always &lt;code&gt;False&lt;/code&gt;, I&#039;d expect it to keep redirecting to https, rather than bouncing back and forth between http and https.  You can use something like &lt;code&gt;assert False, request.is_secure()&lt;/code&gt; to check it.  If &lt;code&gt;is_secure()&lt;/code&gt; is always &lt;code&gt;False&lt;/code&gt;, probably the environment variable isn&#039;t getting set.  This is how Django checks (from &lt;code&gt;django/http/__init__.py&lt;/code&gt;):
&lt;pre&gt;
    def is_secure(self):
        return os.environ.get(&quot;HTTPS&quot;) == &quot;on&quot;&lt;/pre&gt;

I don&#039;t use mod_wsgi, but found this: http://code.google.com/p/modwsgi/issues/detail?id=222</description>
		<content:encoded><![CDATA[<p>It would be worth checking <code>is_secure()</code>, though if that&#8217;s always <code>False</code>, I&#8217;d expect it to keep redirecting to https, rather than bouncing back and forth between http and https.  You can use something like <code>assert False, request.is_secure()</code> to check it.  If <code>is_secure()</code> is always <code>False</code>, probably the environment variable isn&#8217;t getting set.  This is how Django checks (from <code>django/http/__init__.py</code>):</p>
<pre>
    def is_secure(self):
        return os.environ.get("HTTPS") == "on"</pre>
<p>I don&#8217;t use mod_wsgi, but found this: <a href="http://code.google.com/p/modwsgi/issues/detail?id=222" rel="nofollow">http://code.google.com/p/modwsgi/issues/detail?id=222</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Brown</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-209</link>
		<dc:creator>Dave Brown</dc:creator>
		<pubDate>Tue, 21 Jun 2011 18:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-209</guid>
		<description>Great article Scott, thanks!

For the life of me, I cannot stop django from redirecting https back to http, after the http has been redirected to https (creating an infinite loop).  

Any ideas?  I&#039;m using Django 1.3, and have tried your middleware along with others (thinking maybe it was the middleware).  It seems maybe is_secure() isn&#039;t returning true?  

I&#039;m just using apache (mod_wsgi), no reverse proxy or anything fancy.  I can view non-django static files just fine through https.</description>
		<content:encoded><![CDATA[<p>Great article Scott, thanks!</p>
<p>For the life of me, I cannot stop django from redirecting https back to http, after the http has been redirected to https (creating an infinite loop).  </p>
<p>Any ideas?  I&#8217;m using Django 1.3, and have tried your middleware along with others (thinking maybe it was the middleware).  It seems maybe is_secure() isn&#8217;t returning true?  </p>
<p>I&#8217;m just using apache (mod_wsgi), no reverse proxy or anything fancy.  I can view non-django static files just fine through https.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Barnham</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-153</link>
		<dc:creator>Scott Barnham</dc:creator>
		<pubDate>Sun, 02 Jan 2011 09:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-153</guid>
		<description>Yes, you definitely need SSL if you&#039;re taking credit card details from customers.  If you&#039;re doing embedded (&quot;Pro&quot;) PayPal integration, you&#039;re supposed to comply with PCI-DSS standards which are a lot more strict than just using an SSL cert.</description>
		<content:encoded><![CDATA[<p>Yes, you definitely need SSL if you&#8217;re taking credit card details from customers.  If you&#8217;re doing embedded (&#8220;Pro&#8221;) PayPal integration, you&#8217;re supposed to comply with PCI-DSS standards which are a lot more strict than just using an SSL cert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rencontre</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-152</link>
		<dc:creator>Rencontre</dc:creator>
		<pubDate>Sun, 02 Jan 2011 05:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-152</guid>
		<description>Hi,
I would like to ask : if you set a site to use, for example, Paypal in an embedded way (not the simple API that redirects to the Paypal site), would you need SSL ?
I have trouble with that. It is not very Django related but I am in the proces of thinking a new Django site...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I would like to ask : if you set a site to use, for example, Paypal in an embedded way (not the simple API that redirects to the Paypal site), would you need SSL ?<br />
I have trouble with that. It is not very Django related but I am in the proces of thinking a new Django site&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to force the use of SSL for some URL of my Django Application ? Drija</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-148</link>
		<dc:creator>How to force the use of SSL for some URL of my Django Application ? Drija</dc:creator>
		<pubDate>Wed, 17 Nov 2010 08:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-148</guid>
		<description>[...] http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/  July 26, 2010 5:34 am       Natim Maybe this is related : http://effbot.org/zone/django-multihost.htm  October 10, 2009 4:00 am       Graham Dumpleton Answers on StackOverflow at &#8216;http://stackoverflow.com/questions/1548210/how-to-force-the-use-of-ssl-for-some-url-of-my-django-application&#8217;.  October 11, 2009 2:21 am [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/" rel="nofollow">http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/</a>  July 26, 2010 5:34 am       Natim Maybe this is related : <a href="http://effbot.org/zone/django-multihost.htm" rel="nofollow">http://effbot.org/zone/django-multihost.htm</a>  October 10, 2009 4:00 am       Graham Dumpleton Answers on StackOverflow at &#8216;http://stackoverflow.com/questions/1548210/how-to-force-the-use-of-ssl-for-some-url-of-my-django-application&#8217;.  October 11, 2009 2:21 am [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitter Updates for 2010-02-06 &#124; Red Robot Studios</title>
		<link>http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/comment-page-1/#comment-7</link>
		<dc:creator>Twitter Updates for 2010-02-06 &#124; Red Robot Studios</dc:creator>
		<pubDate>Sat, 06 Feb 2010 14:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.redrobotstudios.com/blog2/?p=42#comment-7</guid>
		<description>[...] with my blog post: Securing Django with SSL ( http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/ ) [...]</description>
		<content:encoded><![CDATA[<p>[...] with my blog post: Securing Django with SSL ( <a href="http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/" rel="nofollow">http://www.redrobotstudios.com/blog/2009/02/18/securing-django-with-ssl/</a> ) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

