On 3 Jul 2013, at 8:08 AM, keiser1080 <iach...@gmail.com> wrote: > and routes.py > > # -*- coding: utf-8 -*- > > # default_application, default_controller, default_function > # are used when the respective element is missing from the > # (possibly rewritten) incoming URL > # > default_application = 'init' # 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 > BASE = 'user1' > routers = dict( > BASE = dict( > domains = { > 'jeraweb1.bc': 'aut', > 'jeraweb1.bc/user1/welcome': 'welcome', > 'jeraweb1.bc/user1/aut': 'aut', > 'jeraweb1.bc/user1/aut2': 'aut2', > > } > ), > ) > > > but that don't work. > > Any idea?
The parametric router doesn't allow paths as part of the domain name in the domains section. You'll need to use the pattern-based router for that. Alternatively, you might want to look at specifying 'user1' as a path_prefix, although that would prevent URL() from generating URLs that did not have 'user1' prefixed. -- --- 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.