Web Programming thru python

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Mon Sep 17 09:57:46 EDT 2007


danfolkes a écrit :
(top post corrected - Daniel, please, avoid top-posting...)
> On Sep 17, 7:14 am, python_lover <govisath... at gmail.com> wrote:
>> HI,
>>
>> Please help how to execute a py file with xitami.
>>
>> I installed xitami , downloaded lrwp file.
>>
>> accessing the first web application program
>>
>> import urllib
>> # Get a file-like object for the Python Web site's home page.
>> f = urllib.urlopen("http://www.python.org")
>> # Read from the object, storing the page's contents in 's'.
>> s = f.read()
>> f.close()
>>
>> through browser like "http://localhost/first.py
>>
>> it is dispaying the source code of the first.py.
>>
>> Please help me how to execute the file.
>>
> 
 > I have been wondering the same thing.  I know you have to load the
 > mod_python into apache.

Not necessarily - there are other ways to serve python-generated dynamic 
content from apache. But anyway, please note the OP is asking about 
xitami, not apache...




More information about the Python-list mailing list