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

Reply via email to