It happens very frequently that a visitor on your website typed a wrong URL or the page user is looking for no longer exists. What do you do to handle such cases?
You have three options.
- Redirect the visitor to home page, silently.
- Show a boring 404 error page and then ask them to click on a link to go to home page.
- Create your own funny/awesome/informative custom 404 error page.
In this article we will discuss the third option i.e. How to show your own error page in Django 2.0 project when a URL is not found.
Code is available on Github.
Featured Image source: https://www.pinterest.com/pin/101612535313085400/