Thomas Guettler <[EMAIL PROTECTED]> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to