[Tutor] python wsgi
Kent Johnson
kent37 at tds.net
Wed Nov 18 16:56:42 CET 2009
On Wed, Nov 18, 2009 at 5:11 AM, Amit Sethi <amit.pureenergy at gmail.com> wrote:
> Hi ,
>
> How do I run a python script using wsgi? I am not using any web
> framework I just wish to try out running a simple script.
You need to run a WSGI-compliant server and configure it to host your
application. The std lib contains a simple reference server in
wsgiref, the make_server() example shows how to use it to run a demo
app:
http://docs.python.org/library/wsgiref.html#wsgiref.simple_server.make_server
If you want something more than that, look at the list here:
http://www.wsgi.org/wsgi/Servers
If I were to pick from that list for simple testing I would try CherryPy.
Kent
More information about the Tutor
mailing list