<?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: Nginx &amp; Django on Webfaction &#8211; Part 2</title>
	<atom:link href="http://fightingrabbits.com/archives/208/feed" rel="self" type="application/rss+xml" />
	<link>http://fightingrabbits.com/archives/208</link>
	<description>and herding cats...</description>
	<lastBuildDate>Tue, 06 Jul 2010 10:56:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: JONES</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-4262</link>
		<dc:creator>JONES</dc:creator>
		<pubDate>Mon, 26 Apr 2010 11:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-4262</guid>
		<description>Nice approach. Thank you for your insight.</description>
		<content:encoded><![CDATA[<p>Nice approach. Thank you for your insight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Baker</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-3175</link>
		<dc:creator>Andy Baker</dc:creator>
		<pubDate>Mon, 15 Feb 2010 18:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-3175</guid>
		<description>Your easy_install supervisor line won&#039;t necessarily put supervisor into the correct directory as it specify the same lib and bin locations as you did in part 1 of the tutorial.</description>
		<content:encoded><![CDATA[<p>Your easy_install supervisor line won&#8217;t necessarily put supervisor into the correct directory as it specify the same lib and bin locations as you did in part 1 of the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cooper</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-3050</link>
		<dc:creator>Richard Cooper</dc:creator>
		<pubDate>Mon, 08 Feb 2010 20:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-3050</guid>
		<description>Hi Andy,
    I was just looking at this today as I&#039;m working on a script to enable this to be setup via the Webfaction control panel using their API. I&#039;ll update the post with this in a day or so and give you the credit :)

Thanks for your interest.
Richard.</description>
		<content:encoded><![CDATA[<p>Hi Andy,<br />
    I was just looking at this today as I&#8217;m working on a script to enable this to be setup via the Webfaction control panel using their API. I&#8217;ll update the post with this in a day or so and give you the credit :)</p>
<p>Thanks for your interest.<br />
Richard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Baker</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-3048</link>
		<dc:creator>Andy Baker</dc:creator>
		<pubDate>Mon, 08 Feb 2010 17:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-3048</guid>
		<description>Yep. That was it. I&#039;ve still got the bad habits picked up from the Django tutorial and all my projects are called &#039;myproject&#039; ;-)

Assuming a project called &#039;myproject&#039; then as well as:
sys.path.append(&#039;/home//webapps//myproject/&#039;)

if you add:
sys.path.append(&#039;/home//webapps//&#039;)

then that you can have imports like either:
import myproject.something
or just:
import something

and the urls line can stay as:
ROOT_URLCONF = ‘myproject.urls’

It&#039;s would be better to fix my code so that I avoided explicitly referencing &#039;myproject&#039; but quite a few tutorials do this and so does manage.py&#039;s

It&#039;s better not to do either of these things but I&#039;ve fallen into bad habits and I&#039;m sure others have too!</description>
		<content:encoded><![CDATA[<p>Yep. That was it. I&#8217;ve still got the bad habits picked up from the Django tutorial and all my projects are called &#8216;myproject&#8217; ;-)</p>
<p>Assuming a project called &#8216;myproject&#8217; then as well as:<br />
sys.path.append(&#8216;/home//webapps//myproject/&#8217;)</p>
<p>if you add:<br />
sys.path.append(&#8216;/home//webapps//&#8217;)</p>
<p>then that you can have imports like either:<br />
import myproject.something<br />
or just:<br />
import something</p>
<p>and the urls line can stay as:<br />
ROOT_URLCONF = ‘myproject.urls’</p>
<p>It&#8217;s would be better to fix my code so that I avoided explicitly referencing &#8216;myproject&#8217; but quite a few tutorials do this and so does manage.py&#8217;s</p>
<p>It&#8217;s better not to do either of these things but I&#8217;ve fallen into bad habits and I&#8217;m sure others have too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cooper</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-3031</link>
		<dc:creator>Richard Cooper</dc:creator>
		<pubDate>Sun, 07 Feb 2010 15:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-3031</guid>
		<description>probably something to do with the sys.path.append lines in runserver.py
I&#039;d look there first if you have path issues. :)

Let me know if you get it fixed and I&#039;ll update the post with any changes....</description>
		<content:encoded><![CDATA[<p>probably something to do with the sys.path.append lines in runserver.py<br />
I&#8217;d look there first if you have path issues. :)</p>
<p>Let me know if you get it fixed and I&#8217;ll update the post with any changes&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Baker</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-3017</link>
		<dc:creator>Andy Baker</dc:creator>
		<pubDate>Sat, 06 Feb 2010 16:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-3017</guid>
		<description>What&#039;s the cause of this step?:

ROOT_URLCONF = &#039;urls&#039;

The reason I&#039;m asking is I&#039;m getting a bunch of other import errors in an app that worked fine without nginx and that line seems to imply some funkiness with my Python path.</description>
		<content:encoded><![CDATA[<p>What&#8217;s the cause of this step?:</p>
<p>ROOT_URLCONF = &#8216;urls&#8217;</p>
<p>The reason I&#8217;m asking is I&#8217;m getting a bunch of other import errors in an app that worked fine without nginx and that line seems to imply some funkiness with my Python path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hernan</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-1442</link>
		<dc:creator>Hernan</dc:creator>
		<pubDate>Fri, 13 Nov 2009 06:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-1442</guid>
		<description>Also found out that 

command = /home/mystartp/webapps/fcgi/accuputt/runserver.py

was not working for me, I had to do

command = python2.5 /home/mystartp/webapps/fcgi/accuputt/runserver.py</description>
		<content:encoded><![CDATA[<p>Also found out that </p>
<p>command = /home/mystartp/webapps/fcgi/accuputt/runserver.py</p>
<p>was not working for me, I had to do</p>
<p>command = python2.5 /home/mystartp/webapps/fcgi/accuputt/runserver.py</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hernan</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-1441</link>
		<dc:creator>Hernan</dc:creator>
		<pubDate>Fri, 13 Nov 2009 05:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-1441</guid>
		<description>shouldn&#039;t the crontab be like:

*/10 * * * * cd ~/; ./start_supervisor.sh start

and 

./start_supervisor.sh start

Other than that great post!</description>
		<content:encoded><![CDATA[<p>shouldn&#8217;t the crontab be like:</p>
<p>*/10 * * * * cd ~/; ./start_supervisor.sh start</p>
<p>and </p>
<p>./start_supervisor.sh start</p>
<p>Other than that great post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cooper</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-1000</link>
		<dc:creator>Richard Cooper</dc:creator>
		<pubDate>Sun, 27 Sep 2009 21:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-1000</guid>
		<description>@tim 

If you use &quot;easy-install-2.5 supervisor&quot; on webfaction it will install it in the correct directory (if you are worried then cd ~/ to take you to your home folder first.)

I&#039;ll post something in the morning (UK time) about mounting the supervisor on a sub domain. But basically you have to create a new website record in the control panel to link the supervisor App (created at the beginning of this post) to the sub-domain.</description>
		<content:encoded><![CDATA[<p>@tim </p>
<p>If you use &#8220;easy-install-2.5 supervisor&#8221; on webfaction it will install it in the correct directory (if you are worried then cd ~/ to take you to your home folder first.)</p>
<p>I&#8217;ll post something in the morning (UK time) about mounting the supervisor on a sub domain. But basically you have to create a new website record in the control panel to link the supervisor App (created at the beginning of this post) to the sub-domain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tim</title>
		<link>http://fightingrabbits.com/archives/208/comment-page-1#comment-999</link>
		<dc:creator>tim</dc:creator>
		<pubDate>Sun, 27 Sep 2009 21:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://fightingrabbits.com/?p=208#comment-999</guid>
		<description>Which folder do you install supervisor in? Also can you explain how to mount the process of supervisor on a subdomain?</description>
		<content:encoded><![CDATA[<p>Which folder do you install supervisor in? Also can you explain how to mount the process of supervisor on a subdomain?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
