Ok, I think I see what I did wrong.  On further investigation, it turns out 
that resetting the server is not good enough to refresh the routes.py file, 
you need to actually reload it in the admin interface(I am running the 
web2py source on a windows pc, maybe this is different on linux?). The 
first answer from Jonathan actually does work, I just wasn't reloading 
routes.py correctly.  I thought stopping and starting the server would 
work, or even restarting the pc.  Turns out I was wrong:(  

Thanks everyone for taking the time to help me out with this!


On Friday, March 1, 2013 7:34:36 PM UTC-5, rh wrote:
>
> On Fri, 1 Mar 2013 16:14:57 -0800 (PST) 
> jjg0 <[email protected] <javascript:>> wrote: 
>
> > Oh I wish it were that simple, but no I still see invalid requests 
> > when trying that:(   
> > 
> > Can anyone help me with this?  I still have not resolved this issue. 
> > 
>
> Why not just specify them explicitly? 
>
> routes_in = ( 
>     ('/myapp', '/myapp/default/index'), 
>     ('/contactus', '/contactus/default/index'), 
> ) 
>
> Also, I've used this to simplify my routes_out: 
>
> routes_out = [(x, y) for (y, x) in routes_in] 
>
> I enabled logging too, renamed logging.example.conf -> logging.conf 
> and restarted. 
>
> > 
> > 
> > 
> > On Friday, March 1, 2013 5:49:46 PM UTC-5, Rufus wrote: 
> > > 
> > > # As simple as this?   (I'm new too) 
> > > 
> > > routes_in = ( 
> > >     ('/$anything', '/myapp/default/$anything'), 
> > > ) 
> > > 
> > > routes_out = ( 
> > >     ('/myapp/default/$anything', '/$anything'), 
> > > ) 
> > > 
> > > 
> > > 
> > 
> > -- 
> > 
> > --- 
> > 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 
> > [email protected] <javascript:>. For 
> > more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>
> -- 
>
>
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to