Disabling the error page in production.

18 views
Skip to first unread message

David J.

unread,
Jan 28, 2011, 4:00:55 PM1/28/11
to web...@googlegroups.com
How do I disable the error page in production?

I would ideally like to replace it with a Nicer page same for 404 errors;

I searched the book for error page; but I must have missed the part
where it says disabling.

Thanks.

Bruno Rocha

unread,
Jan 28, 2011, 4:17:58 PM1/28/11
to web...@googlegroups.com

Nico de Groot

unread,
Jan 28, 2011, 5:20:19 PM1/28/11
to web2py-users
You can use routes.py in the root of your web2py tree to reroute 404
and/or 400 errors to a more friendly page, see
http://web2py.com/book/default/chapter/04#Routes-on-Error

Nico
Reply all
Reply to author
Forward
0 new messages