I am trying to deploy a circuits.web application (http://circuitsframework.com) with the following code being placed into my user_pythonanywhere_com_wsgi.py file:
from circuits.web import Controller
from circuits.web.wsgi import Application
class Root(Controller):
def index(self):
return "Hello World!"
application = Application()
Root().register(application)
However I get an ERR_CONTENT_LENGTH_MISMATCH
error when I try to access the page.
When I follow the instructions on https://help.pythonanywhere.com/pages/UsingCherryPy/ I get a Hello World message. CherryPy is similar to circuits.web in some ways but I am not sure what I am doing wrong. Any suggestions?
[edit by admin: formatting]