On Saturday, October 21, 2017 at 12:17:53 AM UTC-7, 黄祥 wrote:
>
> learn from anthony respond in stackoverflow it is in routes.py in web2py 
> root folder not in app root folder (tested using routes.py in app root 
> folder is not work, no error occured but the result is not expected)
>

I'm not sure that that is what Anthony said in the SO reply.

But as I understand it, the app/routes.py doesn't work if you don't have 
the base routes.py set up.
 

> *e.g. *(replace web2pyapp with your web2py application name)
> cd ~/web2py/
> cp examples/routes.parametric.example.py ./routes.py
> echo "routes_onerror = [('web2pyapp/404', '/web2pyapp/static/404.html') ]" 
> >> routes.py
>
> you can choose either : 
> routes.parametric.example.py
> routes.patterns.example.py
> to put in web2py root folder tested both work fine
>
> *ref:*
>
> https://stackoverflow.com/questions/17351528/web2py-custom-404-page-when-i-raise-the-404-myself?noredirect=1
>
> thanks and best regards,
> stifan
>

/dps
 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to