Hello,
Following is my main routes.py
logging = 'debug'
default_application = "myshop"
routes_app = ((r'/(?P<app>welcome|admin|app)\b.*', r'\g<app>'),
(r'(.*)', r'myshop'),
(r'/?(.*)', r'myshop')\
)
followed by myshop/routes.py
# -*- coding: utf-8 -*-
default_controller = 'default' # ordinarily set in app-specific routes.py
default_function = 'index' # ordinarily set in app-specific routes.py
routes_in = (
('/', '/myshop/default/index'),
# ('/static/(?P<path>.*)', '/myshop/static/\g<path>'),
('/$language/$anything','/myshop/default/index?lang=$language'),
)
routes_out = (
('/static/$anything','/app/static/$anything'),
('/default/$anything?lang=$language',r'/app/$language/$anything')
)
this should set a request.var but it is not. any pointers ?
Thanks
--
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.