CGI Server that supports redirects

M

Michele Simionato

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?

Have you tried the CherryPy server, which is also included with Paste?

Michele Simionato
 
J

John J. Lee

Thomas Guettler said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top