On Feb 16, 2011, at 4:13 PM, Andrew Evans wrote: > Sorry I mean this > > routes_onerror = [('dojo/*', '/dojo/error/index'), > ('musico/*', '/musico/error/index'),] > > returns a invalid request when going www.namiyama.com/index.php
I think the problem is that when the above URL is received, there's no associated application. You'll need to route /index.php to either dojo or musico, or include a */* entry in onerror. What's your routes_in? > > *cheers > > > > On Wed, Feb 16, 2011 at 4:07 PM, Andrew Evans <randra...@gmail.com> wrote: > 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 <randra...@gmail.com> 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 > >