Answer the question
In order to leave comments, you need to log in
How to detect 404 error and others correctly so that the site displays a page from templates or HttpResponse?
While testing the site, I entered the wrong URL and a 404 page came up (with DEBUG = True of course). How to program a site to display a page or HTML code on error (Write valid code in urls.py and views.py)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question