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: page not found</h3>
{% endblock %}
Why does Django load 500 instead of 404 although it exists? It cannot be a template error.