It is good practice to put in the CSS only relative urls to other
static files. That is not a problem with web2py.

If you need to include in the CSS urls generated by {{=URL(....)}}
then you should promote the css from a static file to a dynamic page:
1) make a controller for it
2) make a view ending in .css
3) call the action from the layout ending in .css
4) in the .css view use absolute paths to include images

hope this helps.

On Oct 6, 3:12 pm, Eric Vicenti <[email protected]> wrote:
> Hi,
>
> I understand most of my site CSS and Javascript (which need no
> database interface) should be static files, but there is often the
> need to include URLs in CSS or JS files. How should I do the URLs such
> that the site is still portable?
>
> -Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to