On Mar 29, 2011, at 5:10 AM, CVstash dot com wrote:
>
> so I made web2py/routes.py with this code:
> *************
> routers = dict(
> BASE = dict(default_application='resume'),
> )
> routes_in = (
> ('/view/', '/resume/default/cv/'),
> (r'/view/<any>', r'/resume/default/cv/(?P<any>.*)'),
> )
> *************
> The first part which maps the default controller works fine, but the
> second one which should do the shortening of the url doesn't work at
> all (says invalid request). I copied the first routes_in entry
> directly from the book. Any thoughts?
You can't mix the two routing styles. Start by removing the routers= section,
and just specifying your default application:
default_application='resume'