CGI -> mod_python

Thomas Jollans nospam at jollans.com
Tue Oct 3 07:51:47 CEST 2006


On Mon, 02 Oct 2006 22:07:26 -0700, "bernhard.heinzel at gmail.com"
<bernhard.heinzel at gmail.com> let this slip:

> Hi,
> 
> it is a kind of nooby question. Is there a way to transfer a CGI python
> script to mod_python without rewriting the code?

Not that I know of, but thanks to the WSGI (specified in PEP 333:
http://www.python.org/dev/peps/pep-0333/) you should be able to convert
your app to WSGI, which will run on mod_python, relatively easily
(depending on your code; 'print' won't work anymore)

-- 
Thomas Jollans alias free-zombie



More information about the Python-list mailing list