<?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: Serving Django Static Files through Apache</title>
	<atom:link href="http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Wed, 01 Feb 2012 10:09:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Nicholas Tung</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-8236</link>
		<dc:creator>Nicholas Tung</dc:creator>
		<pubDate>Sat, 31 Oct 2009 20:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-8236</guid>
		<description>Thanks so much, Antonio!</description>
		<content:encoded><![CDATA[<p>Thanks so much, Antonio!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Ferrell</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-7981</link>
		<dc:creator>Greg Ferrell</dc:creator>
		<pubDate>Mon, 05 Oct 2009 03:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-7981</guid>
		<description>Thanks so much! This was just what I was looking for. Django is awesome, but this is its one Achilles heel so far.</description>
		<content:encoded><![CDATA[<p>Thanks so much! This was just what I was looking for. Django is awesome, but this is its one Achilles heel so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katja</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-7232</link>
		<dc:creator>Katja</dc:creator>
		<pubDate>Tue, 18 Aug 2009 17:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-7232</guid>
		<description>Does it also work this way when I want to display pictures in MEDIA_ROOT on a webpage?
I&#039;ve tried this and don&#039;t find the error - but don&#039;t see a picture ... *sigh*

In the webpage I have: 
&lt;img src=&quot;
http:///zooscan/profilepics/PIC.png &quot; /&gt;
Thanks for any hints!</description>
		<content:encoded><![CDATA[<p>Does it also work this way when I want to display pictures in MEDIA_ROOT on a webpage?<br />
I&#8217;ve tried this and don&#8217;t find the error &#8211; but don&#8217;t see a picture &#8230; *sigh*</p>
<p>In the webpage I have:<br />
&lt;img src=&quot;<br />
<a href="http:///zooscan/profilepics/PIC.png" rel="nofollow">http:///zooscan/profilepics/PIC.png</a> &#8221; /&gt;<br />
Thanks for any hints!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sorl</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-6803</link>
		<dc:creator>sorl</dc:creator>
		<pubDate>Fri, 24 Jul 2009 14:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-6803</guid>
		<description>I totally agree its not a big deal.. its just annoying to see that if statement since it doesn&#039;t do much good, do you know any other blog posts I can spam? :)</description>
		<content:encoded><![CDATA[<p>I totally agree its not a big deal.. its just annoying to see that if statement since it doesn&#8217;t do much good, do you know any other blog posts I can spam? <img src='http://programmingzen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio Cangiano</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-6802</link>
		<dc:creator>Antonio Cangiano</dc:creator>
		<pubDate>Fri, 24 Jul 2009 13:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-6802</guid>
		<description>sorl, while I don&#039;t think it&#039;s a big deal, I agree that using os.path.join is probably better.</description>
		<content:encoded><![CDATA[<p>sorl, while I don&#8217;t think it&#8217;s a big deal, I agree that using os.path.join is probably better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sorl</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-6794</link>
		<dc:creator>sorl</dc:creator>
		<pubDate>Fri, 24 Jul 2009 09:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-6794</guid>
		<description>Ironically if you are unsure if your production environment is set up properly you might want to set DEBUG to True. Perhaps using a similar &quot;trick&quot; to http://www.djangosnippets.org/snippets/644/ for urls is a better idea (import local_urls...)? As for point #2: There are absolutely no reasons not to use os.path.join</description>
		<content:encoded><![CDATA[<p>Ironically if you are unsure if your production environment is set up properly you might want to set DEBUG to True. Perhaps using a similar &#8220;trick&#8221; to <a href="http://www.djangosnippets.org/snippets/644/" rel="nofollow">http://www.djangosnippets.org/snippets/644/</a> for urls is a better idea (import local_urls&#8230;)? As for point #2: There are absolutely no reasons not to use os.path.join</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio Cangiano</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-6788</link>
		<dc:creator>Antonio Cangiano</dc:creator>
		<pubDate>Fri, 24 Jul 2009 00:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-6788</guid>
		<description>sorl, if Apache is misconfigured, checking for settings.DEBUG ensures that the files aren&#039;t being served by Django. Regarding your second point, this article is clearly aimed at *nix systems (you wouldn&#039;t do ln -s on Windows either).</description>
		<content:encoded><![CDATA[<p>sorl, if Apache is misconfigured, checking for settings.DEBUG ensures that the files aren&#8217;t being served by Django. Regarding your second point, this article is clearly aimed at *nix systems (you wouldn&#8217;t do ln -s on Windows either).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sorl</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-6787</link>
		<dc:creator>sorl</dc:creator>
		<pubDate>Thu, 23 Jul 2009 23:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-6787</guid>
		<description>I fail to see the point in the &quot;if settings.DEBUG&quot; statement in urls.py since the webserver will already be taking care of things before you get there in production...
Also &quot;MEDIA_ROOT = &#039;%s/media/&#039; % BASE_PATH&quot; should probably be &quot;MEDIA_ROOT = os.path.join(BASE_PATH, &#039;media&#039;)&quot; if you want to be os agnostic.</description>
		<content:encoded><![CDATA[<p>I fail to see the point in the &#8220;if settings.DEBUG&#8221; statement in urls.py since the webserver will already be taking care of things before you get there in production&#8230;<br />
Also &#8220;MEDIA_ROOT = &#8216;%s/media/&#8217; % BASE_PATH&#8221; should probably be &#8220;MEDIA_ROOT = os.path.join(BASE_PATH, &#8216;media&#8217;)&#8221; if you want to be os agnostic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio Cangiano</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-6780</link>
		<dc:creator>Antonio Cangiano</dc:creator>
		<pubDate>Thu, 23 Jul 2009 14:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-6780</guid>
		<description>Yes, Leonel. Cherokee is awesome.</description>
		<content:encoded><![CDATA[<p>Yes, Leonel. Cherokee is awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leonel</title>
		<link>http://programmingzen.com/2009/07/22/serving-django-static-files-through-apache/#comment-6779</link>
		<dc:creator>leonel</dc:creator>
		<pubDate>Thu, 23 Jul 2009 14:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-6779</guid>
		<description>You can try www.cherokee-project.com  it&#039;s an amazing webserver ..</description>
		<content:encoded><![CDATA[<p>You can try <a href="http://www.cherokee-project.com" rel="nofollow">http://www.cherokee-project.com</a>  it&#8217;s an amazing webserver ..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

