List Info

Thread: Trouble with staticFilter




Trouble with staticFilter
user name
2006-03-14 09:23:58
Hi Rob,

> I have a Cherrypy project with the following
structure...
>
> CherrypyProject/
> configfile.conf
> data/
> css/
> default.css
> js/
> moo.fx.js
> moo.fx.pack.js
> prototype.lite.js
> index.html
> plannerv1.py
> plannerv1.pyc
>
> index.html is valid xhtml that is modified by meld3 and
returned by
> Cherrypy on accessing 'http://localhost:8080/
planner/'
>
> The xhtml references 'default.css' thus (<link
rel="stylesheet"
> type="text/css"
href="default.css" />).
>
> My configfile.conf contains the following statements
which - I assumed
> - should get Cherrypy to serve 'default.css' from
> /data/css/default.css'
>
> [global]
> staticFilter.root =
"/Users/rob/Desktop/CherrypyProject/data"
>
> [/default.css]
> staticFilter.on = True
> staticFilter.file = "/css/default.css"
>
> In short... it doesn't work. I've tried with and
without absolute
> paths, leading and trailing slashes. The css is valid,
the configfile
> is being loaded correctly.

Which CP version are you using and what do you see when you
go to: 
http://localhost:80
80/default.css  ?


Remi.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )