Hello,
I'm starting in web2py and I can get past something really simple.
I need to make a link for some css files on the static folder, however I
don't seem to get the link right...
I tryed the following:
URL('static', 'css\style.css')
/static/css/style.css
URL(a=request.application, args='static/css/style.css')
/default/static/css/style.css
URL(r=request, args='static/css/style.css')
/index/static/css/style.css
URL('static/css/style.css/')
/default/static/css/style.css
URL(a=request.application, c='static/css/style.css', f='')
/myapp/myapp/static/css/style.css
I may even have tryed somemore, but nothing gave me the expected:
/myapp/static/css/style.css
I'm using myapp as application, default as controller and index as a
function.
All these calls were done from index.html on default folder on views folder.
I'm deplying this code on GAE test server and real server, one of these
works on local server, forgot which :/
Lastly I think this may have something to do with the routes.py file so
here is the important part of it:
routers = dict (
BASE = dict(
applications = ['myapp','admin'],
default_application = 'myapp',
default_controller = 'default',
default_function = 'index',
map_static = true
)
)
I hope you can help me,
Gustavo