Your best resources in such case are the tutorials and
tests.
To answer your question
conf = {
'/css': {
'tools.staticdir.on': True,
'tools.staticdir.dir':
:"/home/www/cherrypy/css"
}
}
cherrypy.mount.tree(App(), '/', conf=conf)
- Sylvain
>
>
> Sylvain Hellegouarch a écrit :
>
>> > setting = { 'autoreload.on':False }
>>
>> setting = { 'global' : { 'autoreload.on':False
} }
>> Should be better.
>
> Yes!
> One (last?) thing, after reading CP website and
"What's New in CherryPy
> 3.0" message, I don't find how to serve static
content. I've tryed
> without resultat :
> setting = { 'global' : { 'autoreload.on':False }
> , '/css': {
> 'static_filter.on':True
>
,'static_filter.dir':"/home/www/cherrypy/css"
> }
> }
>
>
> François
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|