On Sep 23, 2010, at 4:34 AM, Albert Abril wrote: > I have in the root of web2py the routes.py configured with that: > > default_application = 'arritmia' # ordinarily set in base routes.py > default_controller = 'default' # ordinarily set in app-specific routes.py > default_function = 'index' # ordinarily set in app-specific routes.py > > > Ok, so when i access to the main url, web2py redirects me to > localhost:8000/arritmia/default/index , right? > > Now i wanna define that, when I access: > http://localhost:8000/bio/ > It should redirect me to: > http://localhost:8000/arritmia/bio > where bio is a controller+view into arritmia app.
A point of clarification: unless you're actually rewriting a URL (with routes_in, etc), http://domain.com/bio will be interpreted as application=bio. The usage of default_application is pretty simplistic, and in particular it never "inserts" an application into a URL. I agree that the kind of "default" that Albert is expecting here would be useful, but for now at least, you have to use routes_in and routes_out to achieve it. > > But i wanna to define it, in routes.py at the root of the application. > > How i define that? > > Should i config routes_app in routes.py at the root of the web2py dir? >

