On Nov 26, 11:05 am, kbochert <[email protected]> wrote:
> On Nov 26, 10:36 am, mdipierro <[email protected]> wrote:
>
> > technically you can reload routes without restarting. From the admin
> > web based shell
>
> > from gluon.rewrite improt *
> > load()
>
> > On Nov 26, 12:02 pm, Yarko Tymciurak <[email protected]>
> > wrote:
>
> > > routes.py is read when web2py starts - be sure to re-start whatever
> > > server you are using (or restart web2py, if you are using the builting
> > > server).
>
> A line in routes.py like
>    x = 6/0
> does indeed produce a divide by zero error when web2py starts.
>
> The routes:
> routes_in=(
>   ('^127\.0\.0\.1:.*',
>       '/examples/default/index'),
> )
> has no effect, even after a startup of web2py
>
> Using the web based shell
>  >>>from gluon.rewrite import *
> produces "error : undefined"
>
> I'm using version 1.72.3
>
> Karl

The mistake I continually made was that

> routes_in=(
>   ('^127\.0\.0\.1:.*',
>       '/examples/default/index'),

should have been

> routes_in=(
>   ('^127\.0\.0\.1:/.*',
>       '/examples/default/index'),

This is a bad business for the punctuation-challenged.
thanks
Karl

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to