I simply performed these actions:
1) tg-admin quickstart
2) Put test.png into static/images
3) Access the image by browser for /static/images/test.png
This is the error:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0_betadev-py2.4.egg/cherrypy/_cphttptools.py",
line 274, in run
applyFilters('beforeMain')
File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0_betadev-py2.4.egg/cherrypy/_cphttptools.py",
line 655, in applyFilters
method()
File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0_betadev-py2.4.egg/cherrypy/lib/filter/staticfilter.py",
line 68, in beforeMain
cptools.serveFile(filename)
File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0_betadev-py2.4.egg/cherrypy/lib/cptools.py",
line 237, in serveFile
raise cherrypy.NotFound(cherrypy.request.path)
NotFound: /static/images/avatar.png
--
www.italianpug.org - Italian Python User Group Founder