<?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="https://programmingzen.com/serving-django-static-files-through-apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmingzen.com/serving-django-static-files-through-apache/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Wed, 30 May 2012 05:17:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Mike		</title>
		<link>https://programmingzen.com/serving-django-static-files-through-apache/#comment-27677</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Wed, 30 May 2012 05:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-27677</guid>

					<description><![CDATA[I had thought it was my apache cfg but after changing my django settings.py the way you have, presto - voila  it worked! Many thanks!]]></description>
			<content:encoded><![CDATA[<p>I had thought it was my apache cfg but after changing my django settings.py the way you have, presto &#8211; voila  it worked! Many thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: billy bob		</title>
		<link>https://programmingzen.com/serving-django-static-files-through-apache/#comment-27643</link>

		<dc:creator><![CDATA[billy bob]]></dc:creator>
		<pubDate>Tue, 22 May 2012 00:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://antoniocangiano.com/?p=860#comment-27643</guid>

					<description><![CDATA[Thanks so much - been trying to get apache to serve static by itself for so long; most of the recipies are so complicated. This one is simples! Bookmarking this recipie though you may want to use mod_WSGI?]]></description>
			<content:encoded><![CDATA[<p>Thanks so much &#8211; been trying to get apache to serve static by itself for so long; most of the recipies are so complicated. This one is simples! Bookmarking this recipie though you may want to use mod_WSGI?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nicholas Tung		</title>
		<link>https://programmingzen.com/serving-django-static-files-through-apache/#comment-8236</link>

		<dc:creator><![CDATA[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><![CDATA[Thanks so much, Antonio!]]></description>
			<content:encoded><![CDATA[<p>Thanks so much, Antonio!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Greg Ferrell		</title>
		<link>https://programmingzen.com/serving-django-static-files-through-apache/#comment-7981</link>

		<dc:creator><![CDATA[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><![CDATA[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>https://programmingzen.com/serving-django-static-files-through-apache/#comment-7232</link>

		<dc:creator><![CDATA[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><![CDATA[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: 
&#060;img src=&#034;
http:///zooscan/profilepics/PIC.png &quot; /&#062;
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="ugc">http:///zooscan/profilepics/PIC.png</a> &#8221; /&gt;<br />
Thanks for any hints!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: sorl		</title>
		<link>https://programmingzen.com/serving-django-static-files-through-apache/#comment-6803</link>

		<dc:creator><![CDATA[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><![CDATA[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? 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Antonio Cangiano		</title>
		<link>https://programmingzen.com/serving-django-static-files-through-apache/#comment-6802</link>

		<dc:creator><![CDATA[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><![CDATA[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>https://programmingzen.com/serving-django-static-files-through-apache/#comment-6794</link>

		<dc:creator><![CDATA[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><![CDATA[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 ugc">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>https://programmingzen.com/serving-django-static-files-through-apache/#comment-6788</link>

		<dc:creator><![CDATA[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><![CDATA[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>https://programmingzen.com/serving-django-static-files-through-apache/#comment-6787</link>

		<dc:creator><![CDATA[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><![CDATA[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>
	</channel>
</rss>
