import cherrypy from cherrytemplate import renderTemplate class HelloWorld: def index(self): name = "valaki" return renderTemplate(file = "index.tpl") def checkZip(self, zip): return "valami" index.exposed = True checkZip.exposed = True cherrypy.config.update(file="server.conf") cherrypy.root = HelloWorld() cherrypy.server.start() # response to http://localhost:8080
Server got itself in trouble
Traceback (most recent call last):
File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py", line 269, in run
applyFilters('beforeMain')
File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py", line 641, in applyFilters
method()
File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\lib\filter\staticfilter.py", line 68, in beforeMain
cptools.serveFile(filename)
File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\lib\cptools.py", line 280, in serveFile
bodyfile = open(path, 'rb')
IOError: [Errno 2] No such file or directory: 'Y:\\_project\\thedvdreencodefactory\\web\\static\\'