[web2py] Need help with routes

2015-09-29 Thread Vinicius Assef
Hi there. Routes is an area in Web2py I never really understood. :-( I need your help. I have the following routes.py in web2py.dir: ``` # web2py/routes.py # -*- coding: utf-8 -*- logging = 'debug' default_application = 'myapp' routes_app = ((r'/(?Pwelcome|admin)\b.*', r'\g'),

[web2py] need help with routes regex

2010-02-06 Thread weheh
I'm serving up a bunch of pages via a crm-like function that makes for url's that look like this: http://mydomain.com/myapp/page/index/page_name and I want to reduce this to: http://mydomain.com/page_name Anybody know a simple routes.py that'll do that? I've tried a bunch of things but I'm stum