1
An HTTP 404 response won’t automatically redirect to another page. That is not the purpose of a 404 response. You’ll need to use something like JavaScript to redirect to the home page after a certain time frame has passed. Do this by providing your own 404 template within Django (called 404.html in the top level of your templates tree).
Sounds like you really want an HTTP 301 or 302 response so that if a page is not found it will automatically redirect to the home page.
Source:stackexchange.com