Lukasz Szybalski wrote:
> (...)
>
> When this happens a "SCRIPT_NAME" variable is passed to pylons
> app(this is a wsgi standard as I'm being told from wsgi list), in the
> example above the script name I believe is "/myapp/". What this does
> is tells pylons app that everything needs to be prefixed with "myapp"
> example.com/myapp/index  or example.com/myapp/adduser. The problem
> with this is that all url inside the project are prefixed but the
> static files "images and css" are not prefixed.
>
> So while my app knows the url is example.com/myapp/index the static
> files have no idea about the prefix and are pointing to
> example.com/images instead of pointing to example.com/myapp/images
>   
(...)

Are you wrapping the urls of your staic files with url_for()?, eg:

<script ... src="${h.url_for('/js/my.js')}></script>

Without this there's no way the urls in the template can be prefixed 
with SCRIPT_NAME...

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to