On Mar 20, 2012, at 7:22 AM, rdodev wrote: > Alright, I need some assistance in this regard. So, after I managed web2py to > pick up the routes.py, it simply won't work (not even with the provided > examples in that file). I keep getting "Bad Request" response even for the > "welcome" app. Not sure what patterns is the router expecting. Again, any > assistance is much appreciated. > > Below are the URLs I've tried: > > http://localhost:8080/welcome/default/index (Bad Request) > http://localhost:8080/welcome/default (Bad Request) > http://localhost:8080/welcome/ (Bad Request) > > url_ins > > (r'/(?P<app>welcome|admin|app)\b.*', r'\g<app>'), > (r'(.*)', r'myapp'), > (r'/?(.*)', r'myapp')
You've copied the example for routes_app; you should follow the example for routes_in. > > > > On Friday, March 16, 2012 4:57:48 PM UTC-4, rdodev wrote: > Hey all, > > I have renamed (and edited) routes.py for both incoming and outgoing urls. I > have tried messing up with the url tuples and it looks as if web2py is just > not picking that up at all. I have restarted web2py server, I have tried > changed in the controllers (and does changes are picked up), byt no matter > what I do to routes.py it just doesn't work (as in, web2py doesn't seem to be > picking it up). Thanks in advance for your help. >