CGI Server that supports redirects
John J. Lee
jjl at pobox.com
Mon Oct 22 08:30:11 EDT 2007
Thomas Guettler <guettli.usenet at thomas-guettler.de> writes:
> Hi,
>
> CGIHTTPServer does not support redirects[1]
>
> Is there an other python-only way to get a web server
> running wich can execute python code?
>
> Since I already use flup[2]. I think there is not much
> missing to get it serving as http server.
>
> Has anyone hints?
twisted.web2 . I found it easier to get it to do the simple stuff I
needed than cherrypy.
Simple example that shows how to do static files, redirects & CGI in a
standalone script:
http://codespeak.net/svn/wwwsearch/mechanize/trunk/test-tools/twisted-localserver.py
Of course you can do dynamic but non-CGI stuff too, examples here
(these examples illustrate running under twistd rather than
standalone):
http://twistedmatrix.com/projects/web2/documentation/howto/intro.xhtml
Other twisted web stuff:
http://twistedmatrix.com/projects/web2/documentation/howto/
http://twistedmatrix.com/trac/wiki/WebDevelopmentWithTwisted
John
More information about the Python-list
mailing list