Groups
Groups
Sign in
Groups
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
404 Error Page
94 views
Skip to first unread message
kev
unread,
Nov 29, 2008, 7:53:11 PM
11/29/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
11/29/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
11/29/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py Web Framework
Thx!
Reply all
Reply to author
Forward
0 new messages