Hello,
looking for wsgi capabilities of the toolserver I found the following wiki-page: https://wiki.toolserver.org/view/Python_WSGI
Unfortunately this did not enable me to run my hello.wsgi from inside my public_html directory.
The missing part here seems to be how wsgi can actually be used on the toolserver.
Any hint?
Sven
On Thu, Jul 14, 2011 at 2:04 PM, Sven Geggus lists@fuchsschwanzdomain.de wrote:
Unfortunately this did not enable me to run my hello.wsgi from inside my public_html directory.
The missing part here seems to be how wsgi can actually be used on the toolserver.
Try renaming hello.wsgi to hello.fcgi and change flup.server.cgi to flup.server.fcgi.
Bryan
Bryan Tong Minh bryan.tongminh@gmail.com wrote:
Try renaming hello.wsgi to hello.fcgi and change flup.server.cgi to flup.server.fcgi.
Huh? Where would I need to put a flup.server.something?
I tried the "Hello world" example from https://wiki.toolserver.org/view/Python_WSGI as well as a generic one without the "if __name__ == "__main__":" stuff.
Regards
Sven
On Thu, Jul 14, 2011 at 3:12 PM, Sven Geggus lists@fuchsschwanzdomain.de wrote:
Bryan Tong Minh bryan.tongminh@gmail.com wrote:
Try renaming hello.wsgi to hello.fcgi and change flup.server.cgi to flup.server.fcgi.
Huh? Where would I need to put a flup.server.something?
In the import, see the examples. It is already included in the HelloWorld example.
I tried the "Hello world" example from https://wiki.toolserver.org/view/Python_WSGI as well as a generic one without the "if __name__ == "__main__":" stuff.
That one should just work if you rename the file to .fcgi instead of .wsgi.
Bryan
toolserver-l@lists.wikimedia.org