On 25 Oct 2013, at 2:17 AM, Loïc Espern <[email protected]> wrote:
> So, you have define your base "routes.py" on web2py folder. > Then, do you have set up an app-specific routes.py in your application folder? No, you can do everything in the root routes.py. > > For example, in welcome app you should have a routes.py file containing > something like (just a stupid example from one of my apps) : > > # -*- coding: utf-8 -*- > routes_in = ( > (r'/whatever', r'/welcome/default/whatever'), > (r'/contact', r'/welcome/default/contact_form'), > (r'/robots.txt', r'/welcome/static/robots.txt'), > ) > > routes_out = [(x, y) for (y, x) in routes_in] > -- 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/groups/opt_out.

