Hi All,
Can anyone help with the basic to get a cherrypy app running on
pythonanywhere.com ?
The only references I could find for creating a cherrypy wsgi server on
pythonanywhere is here:
https://www.pythonanywhere.com/forums/topic/199/
https://www.pythonanywhere.com/forums/topic/95/
They both refer to this older cherrypy link which has the sample code:
http://tools.cherrypy.org/wiki/ModWSGI
When I use this example as wsgi.py on pythonanywhere, I get this error:
------------------ snip ----------------------
Unrecoverable error in the server.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.2-
py2.7.egg/cherrypy/_cprequest.py", line 571, in run
self.script_name = self.app.script_name
File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.2-
py2.7.egg/cherrypy/_cptree.py", line 83, in _get_script_name
return cherrypy.serving.request.wsgi_environ['SCRIPT_NAME'].rstrip("/")
KeyError: 'SCRIPT_NAME'
------------------ snip ----------------------
Has anyone run a cherrypy app on pythonanywhere before, and have any advice on
how to get it done?
Or anyone know of another python hosting environment to run a small proof of
concept cherrypy app on?
Thanks,
Tom