On May 25, 8:21 am, Jonathan Ballet <[email protected]> wrote:

> How did the paths to the static files are generated in your templates or
> in your code?
>
The paths I use in my templates and in my javascript code look like
these examples:

/css/main.css
/js/myscript.js

where both the css and js directories are under /public.

> I'm not sure, but I believe that if you use `request.static_url()`
> method, Pyramid is going to generate the right URL, depending on which
> path your application is mounted on.
>
> Seehttp://docs.pylonsproject.org/projects/pyramid/1.0/narr/assets.html#g...
> for more details.
>

Thanks for the link, this may be the solution. Please note that I'm
using Pylons version 1.0 not Pyramid and I'm not sure if this is a
Pyramid only solution, I'll check tonight when I get home from work

--
Geoff.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to