Django: 404.html exists but 500.html is used
问题 http://127.0.0.1:8000/app/slug/ With Debug=True I get Page not found (404) - No entry found matching the query . With Debug=False I get shown the projectName/templates/500.html instead of 404.html . Both look exactly the same. 500.html : {% extends "base.html" %} {% block title %}server error{% endblock %} {% block content %} <h3>Error 500: server error</h3> {% endblock %} 404.html : {% extends "base.html" %} {% block title %}page not found{% endblock %} {% block content %} <h3>Error 404: