# 62 404 and 500

* adds custom 404 and 500 error handling views
* adds/updates translations
This commit is contained in:
2022-01-12 16:45:55 +01:00
parent 6342044ff9
commit a9962b4d20
6 changed files with 92 additions and 20 deletions

13
templates/404.html Normal file
View File

@@ -0,0 +1,13 @@
{% extends 'public_base.html' %}
{% load i18n fontawesome_5 %}
{% block body %}
<div class="jumbotron">
<h1 class="display-4">{% fa5_icon 'question-circle' %} 404</h1>
<h1 class="display-4">{% trans 'Not found' %}</h1>
<hr>
<p class="lead">
{% trans 'The requested data does not exist.' %}
</p>
</div>
{% endblock %}

13
templates/500.html Normal file
View File

@@ -0,0 +1,13 @@
{% extends 'public_base.html' %}
{% load i18n fontawesome_5 %}
{% block body %}
<div class="jumbotron">
<h1 class="display-4">{% fa5_icon 'fire-extinguisher' %} {% fa5_icon 'fire-alt' %} 500</h1>
<h1 class="display-4">{% trans 'Server Error' %}</h1>
<hr>
<p class="lead">
{% trans 'Something happened. We are working on it!' %}
</p>
</div>
{% endblock %}