Thanks, Massimo. I got it now. I guess I'll just avoid ('/$anything',
'/myapplic/default/$anything') before deployment, as it makes my app
the default view for the base address.

Eduardo

On Nov 8, 8:17 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> 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
>
>

Reply via email to