instead of http://..../admin
try http://..../admin/ same for appadmin. You are matching the final / On Nov 8, 4:03 pm, Eduardo <meketr...@gmail.com> wrote: > Thanks for your time, Wikus and Massimo. > > The code below inspired by the book: > > # ======================== # > routes_in = (('/admin/$anything', '/admin/$anything'), > ('/static/$anything', '/myapplic/static/$anything'), > ('/appadmin/$anything', '/myapplic/appadmin/$anything'), > ('/$anything', '/myapplic/default/$anything'), > ('/base.css', '/myapplic/static/base.css'), > ('/robots.txt', '/myapplic/static/robots.txt'), > ) > > routes_out = [(x, y) for (y, x) in routes_in] > # ========================= # > > made the rewrites work fine, except that now admin and appadmin return > "invalid function". What should I do? > > Eduardo