Implementing a 404 Template If DEBUG is True, Django displays the useful 404 error page. But if DEBUG is False, then it does something different: it renders a template called 404.html in your root template directory. So, when you’re ready to deploy, you’ll need to create this template and put a useful “Page not found” [...]
↧