<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: The Perfect Django Settings File</title>
	<atom:link href="http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 09 Jan 2010 10:26:58 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brainfuck Python Interpreter &#171; Abd Allah Diab&#39;s Blog</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-42</link>
		<dc:creator>Brainfuck Python Interpreter &#171; Abd Allah Diab&#39;s Blog</dc:creator>
		<pubDate>Sat, 09 Jan 2010 10:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-42</guid>
		<description>[...] discovered the language while I was reading an article about writing the perfect settings file for Django. The author used DPaste website to link to pieces of code. DPaste website says that it uses [...]</description>
		<content:encoded><![CDATA[<p>[...] discovered the language while I was reading an article about writing the perfect settings file for Django. The author used DPaste website to link to pieces of code. DPaste website says that it uses [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-17</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Wed, 21 Oct 2009 02:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-17</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Reddit by arnar: No I mean having it in debug mode by default, disabling it only for production hostnames, sounds dangerous. Typo in hostname, or some change of configuration and you might be exposing sensitive stuff to the w...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Reddit by arnar: No I mean having it in debug mode by default, disabling it only for production hostnames, sounds dangerous. Typo in hostname, or some change of configuration and you might be exposing sensitive stuff to the w&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brainfuck Python Interpreter &#171; Abd Allah Diab&#8217;s Blog</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-15</link>
		<dc:creator>Brainfuck Python Interpreter &#171; Abd Allah Diab&#8217;s Blog</dc:creator>
		<pubDate>Mon, 19 Oct 2009 22:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-15</guid>
		<description>[...] discovered the language while I was reading an article about writing the perfect settings file for Django. The author used DPaste website to link to pieces of code. DPaste website says that it uses [...]</description>
		<content:encoded><![CDATA[<p>[...] discovered the language while I was reading an article about writing the perfect settings file for Django. The author used DPaste website to link to pieces of code. DPaste website says that it uses [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spaizkadett</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-14</link>
		<dc:creator>Spaizkadett</dc:creator>
		<pubDate>Mon, 19 Oct 2009 11:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-14</guid>
		<description>To get it to work on a windows box add:

.replace(&#039;\\&#039;,&#039;/&#039;)

to all the settings that has anything with a path in it</description>
		<content:encoded><![CDATA[<p>To get it to work on a windows box add:</p>
<p>.replace(&#8216;\\&#8217;,'/&#8217;)</p>
<p>to all the settings that has anything with a path in it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit Chachra</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-12</link>
		<dc:creator>Sumit Chachra</dc:creator>
		<pubDate>Fri, 16 Oct 2009 19:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-12</guid>
		<description>No... nothing to give runserver. Use os.environ to get the values and then some if/else blocks works just fine:


ENV = os.environ[&#039;ENV&#039;]

if ENV == &#039;dev&#039;:
  IS_DEV = True
  DEBUG = True
  LOG_LEVEL = logging.DEBUG
  .
  .
  .
  .</description>
		<content:encoded><![CDATA[<p>No&#8230; nothing to give runserver. Use os.environ to get the values and then some if/else blocks works just fine:</p>
<p>ENV = os.environ['ENV']</p>
<p>if ENV == &#8216;dev&#8217;:<br />
  IS_DEV = True<br />
  DEBUG = True<br />
  LOG_LEVEL = logging.DEBUG<br />
  .<br />
  .<br />
  .<br />
  .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Gales</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-10</link>
		<dc:creator>Jon Gales</dc:creator>
		<pubDate>Fri, 16 Oct 2009 18:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-10</guid>
		<description>There are some good tips here, but I noticed your links to Google Code are all messed up. I&#039;m not quite sure how, but it looks like Wordpress switched code.google.com to be pre.google.com (I&#039;m guessing something with the code and pre HTML tags). 

Also, for template directories you don&#039;t need to specify these out if you name them like you do. Django automatically looks for a directory called templates in all installed apps. Check out django.template.loaders.app_directories.load_template_source in the docs http://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types</description>
		<content:encoded><![CDATA[<p>There are some good tips here, but I noticed your links to Google Code are all messed up. I&#8217;m not quite sure how, but it looks like WordPress switched code.google.com to be pre.google.com (I&#8217;m guessing something with the code and pre HTML tags). </p>
<p>Also, for template directories you don&#8217;t need to specify these out if you name them like you do. Django automatically looks for a directory called templates in all installed apps. Check out django.template.loaders.app_directories.load_template_source in the docs <a href="http://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types" rel="nofollow">http://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to serve media with Django&#8217;s runserver and only with runserver &#171; DAMON BLOGONS</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-9</link>
		<dc:creator>How to serve media with Django&#8217;s runserver and only with runserver &#171; DAMON BLOGONS</dc:creator>
		<pubDate>Fri, 16 Oct 2009 15:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-9</guid>
		<description>[...] But I&#8217;m the type of guy who has forgotten to change DEBUG to false on the production server (I know I know!! This is the reason I do this). [...]</description>
		<content:encoded><![CDATA[<p>[...] But I&#8217;m the type of guy who has forgotten to change DEBUG to false on the production server (I know I know!! This is the reason I do this). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damon Jablons</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-8</link>
		<dc:creator>Damon Jablons</dc:creator>
		<pubDate>Fri, 16 Oct 2009 15:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-8</guid>
		<description>Hey David,

I&#039;m interested in why you suggest that. All that my local_settings.py file has is some DB settings. It doesn&#039;t need to be version controlled. It only consists of four lines.

:D</description>
		<content:encoded><![CDATA[<p>Hey David,</p>
<p>I&#8217;m interested in why you suggest that. All that my local_settings.py file has is some DB settings. It doesn&#8217;t need to be version controlled. It only consists of four lines.</p>
<p> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damon Jablons</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-7</link>
		<dc:creator>Damon Jablons</dc:creator>
		<pubDate>Fri, 16 Oct 2009 13:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-7</guid>
		<description>That sounds like a good idea, do you have an example of how it&#039;d look? I&#039;m assuming you&#039;d have to input your variables with the runserver command.</description>
		<content:encoded><![CDATA[<p>That sounds like a good idea, do you have an example of how it&#8217;d look? I&#8217;m assuming you&#8217;d have to input your variables with the runserver command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.damonjablons.com/2009/10/15/the-perfect-django-settings-file/#comment-6</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 16 Oct 2009 08:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://damonjablons.wordpress.com/?p=23#comment-6</guid>
		<description>Hi, 
I have a few suggestions, but first of all I want to say that I like your approach, it&#039;s much better than many others I&#039;ve seen on the past.

1. I&#039;m pretty sure django does the same as your &quot;Template Directories&quot; trick on the fly for you already.

2. I don&#039;t think it&#039;s a good idea make your repository ignore local_settings.py, I&#039;d rather put it on the Python path somewhere else.

That&#039;s all :)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have a few suggestions, but first of all I want to say that I like your approach, it&#8217;s much better than many others I&#8217;ve seen on the past.</p>
<p>1. I&#8217;m pretty sure django does the same as your &#8220;Template Directories&#8221; trick on the fly for you already.</p>
<p>2. I don&#8217;t think it&#8217;s a good idea make your repository ignore local_settings.py, I&#8217;d rather put it on the Python path somewhere else.</p>
<p>That&#8217;s all <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
