I was at 0.8 and humming along just fine and then after upgrading TG to
0.9a, my css is not getting served with my pages!
Here's the relevant part of config.py:
path("/static")
static_filter.on = True
static_filter.dir = absfile("kaos", "static")
path("/favicon.ico")
static_filter.on = True
static_filter.file = absfile("kaos", "static/images/favicon.ico")
and the reference in the kid template:
<link rel="stylesheet" type="text/css" href="/static/css/project.css"
/>
and now the cherrypy error message:
127.0.0.1 - - [14/Mar/2006:17:36:23] "GET /static/css/project.css
HTTP/1.1" 500 1396
2006-03-14 17:36:26,250 turbokid.kidsupport DEBUG Applying template
kaos.templates.project
127.0.0.1 - - [14/Mar/2006:17:36:26] "GET / HTTP/1.1" 200 1157
14/Mar/2006:17:36:27 HTTP INFO Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/cherrypy/_cphttptools.py",
line 97, in _run
applyFilters('before_main')
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/cherrypy/filters/__init__.py",
line 151, in applyFilters
method()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/cherrypy/filters/staticfilter.py",
line 53, in before_main
raise cherrypy.WrongConfigValue(msg)
WrongConfigValue: StaticFilter requires an absolute final path. Make
static_filter.dir, .file, or .root absolute.
I tried switching around some of the leading and ending slashes and I
also tried to set a static_filter.root with path("global") but I
couldn't get it to work. I also tried to input strings containg the
absolute path instead of the absfile() function but it didn't work. I
made sure to restart the server after each change, just to be sure.
Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---