<?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: Let&#8217;s make Python web friendly</title>
	<atom:link href="http://codingrecipes.com/lets-make-python-web-friendly/feed" rel="self" type="application/rss+xml" />
	<link>http://codingrecipes.com/lets-make-python-web-friendly</link>
	<description></description>
	<lastBuildDate>Tue, 01 May 2012 00:54:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Codehead</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-221</link>
		<dc:creator>Codehead</dc:creator>
		<pubDate>Wed, 28 Jan 2009 23:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-221</guid>
		<description>I&#039;m still looking for help on this...</description>
		<content:encoded><![CDATA[<p>I&#8217;m still looking for help on this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gert Cuykens</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-220</link>
		<dc:creator>Gert Cuykens</dc:creator>
		<pubDate>Tue, 18 Nov 2008 02:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-220</guid>
		<description>Damit Graham now you made me look like the bad guy again. I suppose to be the good, smart, wise and hansom one :-)</description>
		<content:encoded><![CDATA[<p>Damit Graham now you made me look like the bad guy again. I suppose to be the good, smart, wise and hansom one <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codehead</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-219</link>
		<dc:creator>Codehead</dc:creator>
		<pubDate>Tue, 18 Nov 2008 01:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-219</guid>
		<description>Thanks Graham, I will email you.</description>
		<content:encoded><![CDATA[<p>Thanks Graham, I will email you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-218</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Tue, 18 Nov 2008 00:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-218</guid>
		<description>Codehead, that is if I can contact you. Your blog seems to not be taking my comments any more and can&#039;t for starters correct that URL should have been http://www.pyhp.org/. There seem to be multiple projects with same name, although maybe one is old site. Since can&#039;t find your email either, you perhaps may want to mail me.</description>
		<content:encoded><![CDATA[<p>Codehead, that is if I can contact you. Your blog seems to not be taking my comments any more and can&#8217;t for starters correct that URL should have been <a href="http://www.pyhp.org/" rel="nofollow">http://www.pyhp.org/</a>. There seem to be multiple projects with same name, although maybe one is old site. Since can&#8217;t find your email either, you perhaps may want to mail me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codehead</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-217</link>
		<dc:creator>Codehead</dc:creator>
		<pubDate>Tue, 18 Nov 2008 00:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-217</guid>
		<description>Graham, pyhp is not what I&#039;m looking for either, but I would really like to talk to you about this directly, please let me know if you have the time and if you are interested.</description>
		<content:encoded><![CDATA[<p>Graham, pyhp is not what I&#8217;m looking for either, but I would really like to talk to you about this directly, please let me know if you have the time and if you are interested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-216</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Tue, 18 Nov 2008 00:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-216</guid>
		<description>Gert, that isn&#039;t what I am saying. I am not expecting people to jump on the mod_wsgi band wagon. I am more than happy to see people explore their own solutions, more so if they want to try and do a custom Apache module of their own as can possibly learn from different approaches people may have. I also may be able to contribute something to these other people based on what I have learnt as to what is and what isn&#039;t possible, or where general difficulties may lie. I may also be aware of other packages that they may not be aware of which may be relevant and therefore partly do what they want and therefore save them some trouble.

So, perhaps let me speak for myself next time. :-)</description>
		<content:encoded><![CDATA[<p>Gert, that isn&#8217;t what I am saying. I am not expecting people to jump on the mod_wsgi band wagon. I am more than happy to see people explore their own solutions, more so if they want to try and do a custom Apache module of their own as can possibly learn from different approaches people may have. I also may be able to contribute something to these other people based on what I have learnt as to what is and what isn&#8217;t possible, or where general difficulties may lie. I may also be aware of other packages that they may not be aware of which may be relevant and therefore partly do what they want and therefore save them some trouble.</p>
<p>So, perhaps let me speak for myself next time. <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-215</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Mon, 17 Nov 2008 23:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-215</guid>
		<description>Kevin, I am not trying to scare anyone off. I am more interested in just understanding peoples motivations and what they think is wrong with what is out there. From understanding more about what people see as the problems then I can in turn learn how the things I work on could be changed to make things easier or support other ways of working.

If you knew my history and how I get involved in things you would know that I help all manner of people out even where it is a project that I am not directly involved in. This has included me helping people with writing their own custom modules for hosting Python under Apache or other web servers. So, I am not saying mod_wsgi is the only way and you will find that I still often suggest people use mod_python, fastcgi/scgi or proxy solutions instead. It really all depends on what people want to do as to whether something is appropriate.

Codehead, by the sounds of it you may want to have a look at http://www.freenet.org.nz/python/pyweb/docs/pyhp.html as it looks to overlap with what you have in mind. They also are trying to develop a module for Apache which directly supports their system. This is actually how I came across it as they recently approached me in respect of the custom Apache module they are writing to handle Python and their templating system and some issues they are seeing in interfacing with Apache.

I still have to properly look through what these people are doing, but the general concept of having an application handle a custom template file which is the target of a HTTP request is also able to be managed using mod_wsgi. It is just a matter of configuring Apache appropriately with a combination of Action and AddHandler directives. Even if not a template file which needs special processing, mod_wsgi already allows you to stick WSGI application script files anywhere you want in document directories just like PHP does.

Finally, be aware that using &#039;print&#039; to produce response opens up a huge can of worms. This is because it implicitly directs output via stdout. To have it do otherwise would require byte code manipulation due to it being a keyword. Replacing stdout itself to try and redirect it as some do is not a good solution as it has issues with multithreading, plus that some third party Python modules think they can blindly dump debug output to stdout and/or do other strange things with it, all of which can screw up a response.</description>
		<content:encoded><![CDATA[<p>Kevin, I am not trying to scare anyone off. I am more interested in just understanding peoples motivations and what they think is wrong with what is out there. From understanding more about what people see as the problems then I can in turn learn how the things I work on could be changed to make things easier or support other ways of working.</p>
<p>If you knew my history and how I get involved in things you would know that I help all manner of people out even where it is a project that I am not directly involved in. This has included me helping people with writing their own custom modules for hosting Python under Apache or other web servers. So, I am not saying mod_wsgi is the only way and you will find that I still often suggest people use mod_python, fastcgi/scgi or proxy solutions instead. It really all depends on what people want to do as to whether something is appropriate.</p>
<p>Codehead, by the sounds of it you may want to have a look at <a href="http://www.freenet.org.nz/python/pyweb/docs/pyhp.html" rel="nofollow">http://www.freenet.org.nz/python/pyweb/docs/pyhp.html</a> as it looks to overlap with what you have in mind. They also are trying to develop a module for Apache which directly supports their system. This is actually how I came across it as they recently approached me in respect of the custom Apache module they are writing to handle Python and their templating system and some issues they are seeing in interfacing with Apache.</p>
<p>I still have to properly look through what these people are doing, but the general concept of having an application handle a custom template file which is the target of a HTTP request is also able to be managed using mod_wsgi. It is just a matter of configuring Apache appropriately with a combination of Action and AddHandler directives. Even if not a template file which needs special processing, mod_wsgi already allows you to stick WSGI application script files anywhere you want in document directories just like PHP does.</p>
<p>Finally, be aware that using &#8216;print&#8217; to produce response opens up a huge can of worms. This is because it implicitly directs output via stdout. To have it do otherwise would require byte code manipulation due to it being a keyword. Replacing stdout itself to try and redirect it as some do is not a good solution as it has issues with multithreading, plus that some third party Python modules think they can blindly dump debug output to stdout and/or do other strange things with it, all of which can screw up a response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codehead</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-214</link>
		<dc:creator>Codehead</dc:creator>
		<pubDate>Mon, 17 Nov 2008 23:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-214</guid>
		<description>Gert,
Putting .py files anywhere is just one of the issues. Graham didn&#039;t throw mod_python away by writing mod_wsgi...

I want to work together with everyone who&#039;s interested in what I want to create. I have this idea and I will try my best to make it happen and I believe it will be good for Python.</description>
		<content:encoded><![CDATA[<p>Gert,<br />
Putting .py files anywhere is just one of the issues. Graham didn&#8217;t throw mod_python away by writing mod_wsgi&#8230;</p>
<p>I want to work together with everyone who&#8217;s interested in what I want to create. I have this idea and I will try my best to make it happen and I believe it will be good for Python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gert Cuykens</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-213</link>
		<dc:creator>Gert Cuykens</dc:creator>
		<pubDate>Mon, 17 Nov 2008 23:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-213</guid>
		<description>Configuration off mod_wsgi to be as php putting your .py files anywhere you want. I am not against the idea of making something new , i am against the not working together part to achieve the same goal !!! What Graham is trying to say is &quot;I am working my ass of on this peace of code, and I would appreciate it if we python people where walking in the same direction&quot; I suggest to just do some warming up on some issues on mod_wsgi that are still open and when you solve a thing or two start making suggestions on doing different things. I mean currently mod_wsgi plain hello world benchmarks are almost as fast as static files. Come on !!! What the hell are you going to do different at the core of something this fast ? You may or may not like the wsgi interface of it but at least take a good look at the code. Crazy ideas being tossed around to make it run language independent and stuff. Mod_wsgi is being made by a decade of experience on the filed, learning from the mistakes of mod_python. Are you really going to trow this all away ?

User www-data
Group www-data

Listen 80
Listen 443

ServerRoot &quot;/usr/lib/apache2&quot;
ErrorLog &quot;/var/log/apache2/error.log&quot;
LogLevel info

LoadModule ssl_module modules/mod_ssl.so
SSLCertificateFile /etc/apache2/ca.pem
SSLCertificateKeyFile /etc/apache2/key.pem
SSLSessionCache dbm:/var/log/apache2/ssl_cache
SSLSessionCacheTimeout 600
SSLEngine Off

LoadModule wsgi_module modules/mod_wsgi.so
WSGIProcessGroup %{GLOBAL}
WSGIApplicationGroup %{GLOBAL}
WSGIPythonPath /srv/www/lib

LoadModule mime_module modules/mod_mime.so
TypesConfig /etc/mime.types
DefaultType text/plain
AddHandler wsgi-script .py
AddType text/xml .py

LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css

LoadModule authz_host_module modules/mod_authz_host.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so

ServerAdmin gert.cuykens@gmail.com
ServerName 127.0.0.1:80
DocumentRoot &quot;/srv/www&quot;


 Options ExecCGI Indexes FollowSymLinks
 DirectoryIndex index.htm
 IndexIgnore .htaccess .??* *.pyc
 Order Deny,Allow
 Allow from all</description>
		<content:encoded><![CDATA[<p>Configuration off mod_wsgi to be as php putting your .py files anywhere you want. I am not against the idea of making something new , i am against the not working together part to achieve the same goal !!! What Graham is trying to say is &#8220;I am working my ass of on this peace of code, and I would appreciate it if we python people where walking in the same direction&#8221; I suggest to just do some warming up on some issues on mod_wsgi that are still open and when you solve a thing or two start making suggestions on doing different things. I mean currently mod_wsgi plain hello world benchmarks are almost as fast as static files. Come on !!! What the hell are you going to do different at the core of something this fast ? You may or may not like the wsgi interface of it but at least take a good look at the code. Crazy ideas being tossed around to make it run language independent and stuff. Mod_wsgi is being made by a decade of experience on the filed, learning from the mistakes of mod_python. Are you really going to trow this all away ?</p>
<p>User www-data<br />
Group www-data</p>
<p>Listen 80<br />
Listen 443</p>
<p>ServerRoot &#8220;/usr/lib/apache2&#8243;<br />
ErrorLog &#8220;/var/log/apache2/error.log&#8221;<br />
LogLevel info</p>
<p>LoadModule ssl_module modules/mod_ssl.so<br />
SSLCertificateFile /etc/apache2/ca.pem<br />
SSLCertificateKeyFile /etc/apache2/key.pem<br />
SSLSessionCache dbm:/var/log/apache2/ssl_cache<br />
SSLSessionCacheTimeout 600<br />
SSLEngine Off</p>
<p>LoadModule wsgi_module modules/mod_wsgi.so<br />
WSGIProcessGroup %{GLOBAL}<br />
WSGIApplicationGroup %{GLOBAL}<br />
WSGIPythonPath /srv/www/lib</p>
<p>LoadModule mime_module modules/mod_mime.so<br />
TypesConfig /etc/mime.types<br />
DefaultType text/plain<br />
AddHandler wsgi-script .py<br />
AddType text/xml .py</p>
<p>LoadModule deflate_module modules/mod_deflate.so<br />
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css</p>
<p>LoadModule authz_host_module modules/mod_authz_host.so<br />
LoadModule autoindex_module modules/mod_autoindex.so<br />
LoadModule dir_module modules/mod_dir.so</p>
<p>ServerAdmin <a href="mailto:gert.cuykens@gmail.com">gert.cuykens@gmail.com</a><br />
ServerName 127.0.0.1:80<br />
DocumentRoot &#8220;/srv/www&#8221;</p>
<p> Options ExecCGI Indexes FollowSymLinks<br />
 DirectoryIndex index.htm<br />
 IndexIgnore .htaccess .??* *.pyc<br />
 Order Deny,Allow<br />
 Allow from all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codehead</title>
		<link>http://codingrecipes.com/lets-make-python-web-friendly/comment-page-1#comment-212</link>
		<dc:creator>Codehead</dc:creator>
		<pubDate>Mon, 17 Nov 2008 19:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=499#comment-212</guid>
		<description>Graham,
I&#039;m aware of WSGI, http://www.python.org/dev/peps/pep-0333/ and I see your point here but I think Python has to learn from PHP a little.

I want to be able to name a script *.py, put it anywhere on my web server and point my browser to it. I hate regulations, I think these modules should let you just print things to the web server and if you want a framework, then use one on top of that.

Carl,
I&#039;m not trying to compete with anyone, I&#039;m just frustrated with the options. I&#039;m also a supporter of open-source and admire Graham for what he did and all his contributions.

Kevin,
I will hopefully start this project next week, like I said, I don&#039;t have a lot of time but I&#039;m very motivated.</description>
		<content:encoded><![CDATA[<p>Graham,<br />
I&#8217;m aware of WSGI, <a href="http://www.python.org/dev/peps/pep-0333/" rel="nofollow">http://www.python.org/dev/peps/pep-0333/</a> and I see your point here but I think Python has to learn from PHP a little.</p>
<p>I want to be able to name a script *.py, put it anywhere on my web server and point my browser to it. I hate regulations, I think these modules should let you just print things to the web server and if you want a framework, then use one on top of that.</p>
<p>Carl,<br />
I&#8217;m not trying to compete with anyone, I&#8217;m just frustrated with the options. I&#8217;m also a supporter of open-source and admire Graham for what he did and all his contributions.</p>
<p>Kevin,<br />
I will hopefully start this project next week, like I said, I don&#8217;t have a lot of time but I&#8217;m very motivated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

