yes routes_in = (( r'/$id/$name' , r'/app/default/view/$id/$name'), ) routes_out = ( ( r'/app/default/view/$id/$name' , r'/$id/$name'), )
the extra comma at the end. ;-) On May 1, 12:58 am, Syed Mushtaq <syed1.mush...@gmail.com> wrote: > Hi , > > I was using rewrite for making the URL reader friendly . When I use a space > or hypen in the URL instead of passing it to the controller , it gives an > invalid request . > > I have configured the routes as follows > > routes_in = (( r'/$id/$name' , r'/app/default/view/$id/$name') ) > > routes_out = ( ( r'/app/default/view/$id/$name' , r'/$id/$name') ) > > Is there something I am missing ? > > Thanks > -Syed