Skip to content Skip to sidebar Skip to footer

Web2py Custom 404 Page When I Raise The 404 Myself?

I have a function in my controller that take an HTTP GET request. On certain argument values of that request I want to raise a 404. I also want that 404 to get rerouted to a differ

Solution 1:

Missing an =, and the URL should be preceded by a /:

routes_onerror = [('myapp/404', '/myapp/static/404.html')]

Post a Comment for "Web2py Custom 404 Page When I Raise The 404 Myself?"