List Info

Thread: Why is the path relative and not absolute for tools.staticdir.dir




Why is the path relative and not absolute for tools.staticdir.dir
country flaguser name
United States
2007-03-13 04:55:02
tools.staticdir.dir = "static"

is what you see here:

http://www
.cherrypy.org/wiki/StaticContent

instead of an absolute path... why is that?


--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Why is the path relative and not absolute for tools.staticdir.dir
country flaguser name
United States
2007-03-13 05:03:43
>
> tools.staticdir.dir = "static"
>
> is what you see here:
>
> http://www
.cherrypy.org/wiki/StaticContent
>
> instead of an absolute path... why is that?

It can be both. If you use a relative URI you must provide
the absolute
prefix via tools.staticdir.root which can be global to all
the static
sections of your settings.

- Sylvain

--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

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