Quantcast
Channel: User Bazinga - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Python: Web2py error handling

$
0
0

I am using web2py as my python framework. I am having problem in redirecting/routing pages.

Scenario is for example, when I am going to this URL:

www.example/web2pyApplication/controller

Then accidentally change the URL to this:

www.example/web2pyApplication/controller1

The error that gets displayed will be:

invalid controller (controller1/index)

Is there a way to catch and handle the error, so that it redirects to a 404 page instead?


Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>