You should not be doing this. You need to ask web2py to generate URLs for
you
{{=URL('static','js/something.js')}}
On Monday, 11 August 2014 04:22:34 UTC-5, chuan137 wrote:
>
> e.g.,
>
> from http://localhost/display ===>>> to http://localhost/display/
>
> I tried edit router.py in the root folder, like
>
> routes_in=(
> ('/display4', '/display4/')
> )
>
> not working, I guess, because '/display4/' is then further routed.
>
> Thanks in advance
>
> Chuan
>
>
>
> P.S. background about why I ask. It has sth to do with requirejs.
>
> when use http://localhost/display, I need to set my baseURL as
> 'display/static/js'
> while for http://localhost/display/, I only need to set my baseURL as
> 'static/js', which I prefer
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.