I want to add page 404 on my Django site.
I created a 404.html template and saved it in the root of the my / templates directory. I also made sure that
from django.conf.urls.defaults import *
Line
listed at the top of urls.py. I set DEBUG to False. (I followed these instructions .)
However, if I try to go to a page that, as I know, does not exist - whether it is a created URL or a view specifically designed to execute get_object_or_404 - page 404 does not appear: I just get Chrome standard 'Oh! This link looks broken.
Oddly enough, I also have a 500.html template in the same place, and it looks just fine if I generate a 500 error. What is the problem?
source share