<?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: web.py, Dreamhost, and the django templating framework</title>
	<atom:link href="http://thefire.us/archives/261/feed" rel="self" type="application/rss+xml" />
	<link>http://thefire.us/archives/261</link>
	<description>Projecting Opacity</description>
	<lastBuildDate>Fri, 13 Jan 2012 21:42:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jacob</title>
		<link>http://thefire.us/archives/261#comment-260</link>
		<dc:creator>jacob</dc:creator>
		<pubDate>Mon, 26 Jul 2010 16:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://thefire.us/?p=261#comment-260</guid>
		<description>I have installed the web.py in a subdomain of my website hosted by dreamhost and would like to make it work for the subdomain. Everything is setup as suggested. on the ssh shell commandline ./dispatch.fcgi result in http://0.0.0.0:8080/. but when I do it from the browser http://..com/ it does not work..I expected &#039;Hello World&#039;

code.py is as follows:

import sys, os
sys.path.append(os.getcwd()+&#039;/py_libs&#039;)
import web
urls=( 
   &#039;/(.*)&#039;,&#039;index&#039;
)

class index:
    def GET(self):
        return &quot;Hello World&quot;

app=web.application(urls,globals())

if __name__ == &quot;__main__&quot;:
    app.run() #this is normally only called from dispatch.cgi
#else:
#    web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)

.htaccess is as follows:
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^/?(.*)$ dispatch.fcgi/$1 [L]

What might be wrong? Please help</description>
		<content:encoded><![CDATA[<p>I have installed the web.py in a subdomain of my website hosted by dreamhost and would like to make it work for the subdomain. Everything is setup as suggested. on the ssh shell commandline ./dispatch.fcgi result in <a href="http://0.0.0.0:8080/" rel="nofollow">http://0.0.0.0:8080/</a>. but when I do it from the browser <a href="http://..com/" rel="nofollow">http://..com/</a> it does not work..I expected &#8216;Hello World&#8217;</p>
<p>code.py is as follows:</p>
<p>import sys, os<br />
sys.path.append(os.getcwd()+&#8217;/py_libs&#8217;)<br />
import web<br />
urls=(<br />
   &#8216;/(.*)&#8217;,'index&#8217;<br />
)</p>
<p>class index:<br />
    def GET(self):<br />
        return &#8220;Hello World&#8221;</p>
<p>app=web.application(urls,globals())</p>
<p>if __name__ == &#8220;__main__&#8221;:<br />
    app.run() #this is normally only called from dispatch.cgi<br />
#else:<br />
#    web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)</p>
<p>.htaccess is as follows:<br />
  RewriteEngine On<br />
  RewriteCond %{REQUEST_FILENAME} !-f<br />
  RewriteRule ^/?(.*)$ dispatch.fcgi/$1 [L]</p>
<p>What might be wrong? Please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://thefire.us/archives/261#comment-161</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 18 Oct 2009 19:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://thefire.us/?p=261#comment-161</guid>
		<description>I know of no reason that flup should not work equally well. I think at the time that I wrote this, there was some incompatibility between flup and something installed on dreamhost, but this has probably since been resolved.

I use flup for everything now, but I don&#039;t generally host my python on dreamhost anymore, so...</description>
		<content:encoded><![CDATA[<p>I know of no reason that flup should not work equally well. I think at the time that I wrote this, there was some incompatibility between flup and something installed on dreamhost, but this has probably since been resolved.</p>
<p>I use flup for everything now, but I don&#8217;t generally host my python on dreamhost anymore, so&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Brannon</title>
		<link>http://thefire.us/archives/261#comment-160</link>
		<dc:creator>Chris Brannon</dc:creator>
		<pubDate>Sun, 18 Oct 2009 14:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://thefire.us/?p=261#comment-160</guid>
		<description>Why is fcgi.py recommended over flup?</description>
		<content:encoded><![CDATA[<p>Why is fcgi.py recommended over flup?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

