404 Error Page

94 views
Skip to first unread message

kev

unread,
Nov 29, 2008, 7:53:11 PM11/29/08
to web2py Web Framework
Hello,
I am a bit confused on how to route page to 404 error page instead of
displaying "invalid constructor" or "invalid function".

How would you route all page not found to 404.html?

Thanks,
Kevin

mdipierro

unread,
Nov 29, 2008, 8:55:30 PM11/29/08
to web2py Web Framework
look into routes.example.py

in short. create a file called web2py/routes.py that contains:

routes_in=[]
routes_out=[]
routes_onerror = [('*/404', '/yourapp/static/404.html')]

Massimo

kev

unread,
Nov 29, 2008, 9:34:18 PM11/29/08
to web2py Web Framework
Thx!
Reply all
Reply to author
Forward
0 new messages