List Info

Thread: No response from CP2.2




No response from CP2.2
user name
2006-05-31 15:07:06
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-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 )