On Dec 23, 2011, at 9:14 AM, Joseph Jude wrote:

> routers = dict(
>   BASE        = dict(default_application = 'init',
>               default_controller = 'default',
>               default_function = 'index',
>               functions = ['index'],
> ),
> )
> 
> With the above routes, admin doesn't work. i.e: localhost:8080/admin/index 
> throws a password pg but after that the control goes to /admin/site and it 
> throws an error 'This webpage has a redirect loop'.
> 
> How to resolve this?
> 

Try this (or something like it). Everything you put it BASE applies to all 
apps, so the functions= line in particular needs to go in an app-specific 
router.

I also omitted the init/default/index definitions, since they're already the 
defaults.


routers = dict(
  init  = dict(functions = ['index']),
)

Reply via email to