<?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: Decoupling development and production code</title>
	<atom:link href="http://johntron.com/advice/decoupling-development-and-production/feed/" rel="self" type="application/rss+xml" />
	<link>http://johntron.com/advice/decoupling-development-and-production/</link>
	<description>Python, PHP, Zend, Django, Mobile, and Linux web development guru</description>
	<lastBuildDate>Sun, 12 Dec 2010 16:46:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Huy</title>
		<link>http://johntron.com/advice/decoupling-development-and-production/comment-page-1/#comment-77</link>
		<dc:creator>Huy</dc:creator>
		<pubDate>Tue, 10 Mar 2009 21:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.johntron.com/?p=183#comment-77</guid>
		<description>John,

I&#039;ve always been bothered by the same problem of different environments on production and development servers, but took a different approach. For my Django projects, I place the following into my settings.py file.  It uses python os&#039;s module uname which returns the name of the machine.

import os
LOCAL_DEVELOPMENT = False if &#039;production_machine&#039; in os.uname()[1] else True  
if LOCAL_DEVELOPMENT:
    CACHE_BACKEND = &#039;dummy:///&#039;
    DEBUG = True
    TEMPLATE_DEBUG = True
else:
    CACHE_BACKEND= &#039;memcache://127.0.0.1:12711/&#039;
    DEBUG = False
    TEMPLATE_DEBUG = False

Thanks for the explanation on m4 and Make though. I&#039;ll definitely use that next time.</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>I&#8217;ve always been bothered by the same problem of different environments on production and development servers, but took a different approach. For my Django projects, I place the following into my settings.py file.  It uses python os&#8217;s module uname which returns the name of the machine.</p>
<p>import os<br />
LOCAL_DEVELOPMENT = False if &#8216;production_machine&#8217; in os.uname()[1] else True<br />
if LOCAL_DEVELOPMENT:<br />
    CACHE_BACKEND = &#8216;dummy:///&#8217;<br />
    DEBUG = True<br />
    TEMPLATE_DEBUG = True<br />
else:<br />
    CACHE_BACKEND= &#8216;memcache://127.0.0.1:12711/&#8217;<br />
    DEBUG = False<br />
    TEMPLATE_DEBUG = False</p>
<p>Thanks for the explanation on m4 and Make though. I&#8217;ll definitely use that next time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huy</title>
		<link>http://johntron.com/advice/decoupling-development-and-production/comment-page-1/#comment-2806</link>
		<dc:creator>Huy</dc:creator>
		<pubDate>Tue, 10 Mar 2009 21:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.johntron.com/?p=183#comment-2806</guid>
		<description>John,

I&#039;ve always been bothered by the same problem of different environments on production and development servers, but took a different approach. For my Django projects, I place the following into my settings.py file.  It uses python os&#039;s module uname which returns the name of the machine.

import os
LOCAL_DEVELOPMENT = False if &#039;production_machine&#039; in os.uname()[1] else True  
if LOCAL_DEVELOPMENT:
    CACHE_BACKEND = &#039;dummy:///&#039;
    DEBUG = True
    TEMPLATE_DEBUG = True
else:
    CACHE_BACKEND= &#039;memcache://127.0.0.1:12711/&#039;
    DEBUG = False
    TEMPLATE_DEBUG = False

Thanks for the explanation on m4 and Make though. I&#039;ll definitely use that next time.</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>I&#8217;ve always been bothered by the same problem of different environments on production and development servers, but took a different approach. For my Django projects, I place the following into my settings.py file.  It uses python os&#8217;s module uname which returns the name of the machine.</p>
<p>import os<br />
LOCAL_DEVELOPMENT = False if &#8216;production_machine&#8217; in os.uname()[1] else True<br />
if LOCAL_DEVELOPMENT:<br />
    CACHE_BACKEND = &#8216;dummy:///&#8217;<br />
    DEBUG = True<br />
    TEMPLATE_DEBUG = True<br />
else:<br />
    CACHE_BACKEND= &#8216;memcache://127.0.0.1:12711/&#8217;<br />
    DEBUG = False<br />
    TEMPLATE_DEBUG = False</p>
<p>Thanks for the explanation on m4 and Make though. I&#8217;ll definitely use that next time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

