Commit 4dc1ccd3 authored by Michal Čihař's avatar Michal Čihař

Better titles for error pages

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f4baeb27
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Permission Denied" %}</a></li>
{% endblock %}
{% block content %} {% block content %}
<p> <p>
......
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Page Not Found" %}</a></li>
{% endblock %}
{% block content %} {% block content %}
<p> <p>
......
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% block breadcrumbs %}
<li><a href="{% url 'home' %}">{% trans "Internal Server Error" %}</a></li>
{% endblock %}
{% block content %} {% block content %}
<h2>{% trans "Server Error" %}</h2> <h2>{% trans "Server Error" %}</h2>
......
...@@ -377,7 +377,11 @@ def server_error(request): ...@@ -377,7 +377,11 @@ def server_error(request):
return render( return render(
request, request,
'500.html', '500.html',
status=500 {
'request_path': request.path,
'title': _('Internal Server Error'),
},
status=500,
) )
except Exception: except Exception:
return django.views.defaults.server_error(request) return django.views.defaults.server_error(request)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment