Also, be mindful of the difference in syntax when creating dictionaries via {} vs. dict(). Should be either:
routers = { "BASE": dict( default_application='form', ), "form": dict( default_language = possible_languages['default'][0], languages = [lang for lang in possible_languages if lang != 'default'], ) } or: routers = dict( BASE = dict( default_application='form', ), form = dict( default_language = possible_languages['default'][0], languages = [lang for lang in possible_languages if lang != 'default'], ) ) And note that is is default_application, not defaultapplication (as in the original post). Anthony On Friday, January 24, 2014 9:57:09 AM UTC-5, Jonathan Lundell wrote: > > On 24 Jan 2014, at 12:28 AM, Laxmikant Metri > <laxmi...@gmail.com<javascript:>> > 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.