hello it has stopped working for some reason

and I have no idea what is wrong :-?

routes_onerror = [('dojo/*','/dojo/error/index'),
                  ('musico/*, /musico/error/index'),]


def index():
    if request.vars.code == '400':
        redirect(URL('default', 'index'))
    elif request.vars.code == '404':
        redirect(URL('default', 'index'))
    else:
        redirect(URL('default', 'index'))


but when I use

routes_onerror = [('*/*','/dojo/error/index')]

it works fine *confused

Any ideas *cheers




On Tue, Feb 15, 2011 at 9:56 PM, Andrew Evans <[email protected]> wrote:

> Ok ty I got it haha
>
> now I feel like a novice :-P
>
> I had an extra period in the routes.py filename so it was routes..py
>
>
> any ty for the advice *cheers
>
>
> Andrew
>

Reply via email to