How to deploy CherryPy on pythonanywhere.com
Joe Doherty is right. You want something more like this in you wsgi file:
import syssys.path = [ <path to your web app> ] + sys.pathfrom cherrypy._cpwsgi import CPWSGIAppfrom cherrypy._cptree import Applicationfrom <your_web_app> import <your web app class> config_path = '<path to your cherrypy config>'application = CPWSGIApp( Application(<your web app class>(), '', config = config_path)
I stuck everything that should be based on your particular app in <>s.