Forums

Only WSGI?

I known this site is for wsgi applications but can it be used for cgi apps in python. So putting direct py scripts that are being executed when they are at the end of the URI?

Not currently, I'm afraid - see this post for an official answer. However, if you look at this whole thread you can achieve something somewhat similar, where you place a script in a directory and it's automatically used without having to reload anything. It's not quite the same as a CGI so you can't just drop in your existing CGI scripts because the interface is different, but it might be useful.

Besides, WSGI offers the potential for much better performance than CGI because it doesn't require forking a new process for every web request.