Add custom 404 and 500 error handlers with corresponding templates
All checks were successful
Ruff / ruff (push) Successful in 10s

This commit is contained in:
2025-05-02 04:28:03 +02:00
parent f5a874c6df
commit abab9b359f
4 changed files with 60 additions and 2 deletions

14
core/templates/500.html Normal file
View File

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block content %}
<div class="row justify-content-center">
<div class="col-md-8 text-center">
<div class="alert-danger mt-5">
<h1 class="display-1">500</h1>
<h2>Internal Server Error</h2>
<p class="lead">An unexpected error occurred while processing your request.</p>
<p>Check the URL or return to the <a href="{% url 'index' %}" class="alert-link">homepage</a>.</p>
</div>
</div>
</div>
{% endblock content %}