Thanks a lot Alan, I'm a complete newbe in cherrypy, actually this is my first cherrypy, so I had to go arround many tries to reach the goal, but your help was valuable and finally this is the config that gave me success:
class helloworld(object): indexpage = indexpage() _cp_config = { 'tools.staticdir.on': True, 'tools.staticdir.root': '/path/to/root/folder', 'tools.staticdir.dir': '', } On Sun, April 10, 2011 01:04, Alan Harris-Reid wrote: Andreas... > NotFound: (404, "The path '/file.txt' was not found.") This error message often occurs because file.txt is a static file and you have not told CherryPy where to look for static files. >From the look of the error I am guessing that file.txt is in your root directory, in which case you need the following in your configuration file. [/] tools.staticdir.root = '/path/to/root/folder' # no trailing backslash tools.staticdir.on = True tools.staticdir.dir = "" # necessary to serve static files in home folder Hope this helps. Alan Harris-Reid _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor _______________________ andrés chandía P No imprima innecesariamente. ¡Cuide el medio ambiente! _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor