On 24 Jan 2014, at 12:28 AM, Laxmikant Metri <laxmikan...@gmail.com> wrote: > I created form application in web2py I wanted to make it as default. but > I renamed routes.example.py in form folder into routes.py and done chages > like this > routers = { > app: dict( > default_language = possible_languages['default'][0], > languages = [lang for lang in possible_languages > if lang != 'default'], > defaultapplication='form' > ) > } >
You want the file in the web2py root. routers = { BASE=dict( default_application='form', ), form: dict( default_language = possible_languages['default'][0], languages = [lang for lang in possible_languages if lang != 'default'], ) } Note that you must declare default_application in the base router, and name your app's router the same as the app name. -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.