On Friday, December 23, 2011 12:14:32 PM UTC-5, 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'.
>
I guess it's using your functions list for all apps, and you have only
listed one function ('index') there. Instead, I think functions can be a
dictionary with a key for each app, so maybe try:
functions = dict(init=['index', plus other functions in
/init/controllers/default.py])
Not sure if you'll need to bother with an explicit entry for 'admin'.
Anthony