CGI -> mod_python

Paul Boddie paul at boddie.org.uk
Tue Oct 3 05:59:26 EDT 2006


bernhard.heinzel at gmail.com wrote:
>
> it is a kind of nooby question. Is there a way to transfer a CGI python
> script to mod_python without rewriting the code?

Had you used WebStack [1] to begin with, this migration would involve
changing a few lines of glue code. However, as others have pointed out,
WSGI may be an appropriate API to target for a modest rewrite of the
code, given substantial resemblances to aspects of the CGI API.

Paul

[1] http://www.python.org/pypi/WebStack




More information about the Python-list mailing list