handle custom error templates

This commit is contained in:
2025-09-08 09:59:16 +02:00
parent 14fe0ded02
commit 2fd139de55
9 changed files with 57 additions and 8 deletions

24
templates/500.html Normal file
View File

@@ -0,0 +1,24 @@
{% extends "base.html" %}
{% block title %}404 Not Found{% endblock title %}
{% block content %}
<div class="container px-5 py-5 text-center">
<div class="row justify-content-center">
<div class="col-lg-8">
<h1 class="page-header-ui-title mb-3 display-6">Error - 500</h1>
<h2 class="page-header-ui-title mb-3 display-6">Server Issue</h2>
</div>
</div>
</div>
<div class="container px-5 py-5 text-center">
<div class="justify-content-center">
<a class="btn fw-500 ms-lg-4 btn-primary px-10" href="{% url 'index' %}">
Back Home
</a>
</div>
</div>
{% endblock %}