feat: add custom 404/500 error pages

This commit is contained in:
2026-09-16 00:07:35 +02:00
parent 8b9c254fd2
commit 68de07645a
4 changed files with 70 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
{% extends "base.html" %}
{% load django_vite %}
{% block title %}Page Not Found{% endblock %}
{% block head %}
{% vite_asset 'src/error.ts' %}
{% endblock %}
{% block content %}
<div id="app" data-code="404" data-title="Page not found" data-message="The page you're looking for doesn't exist or has been moved."></div>
{% endblock %}
+13
View File
@@ -0,0 +1,13 @@
{% extends "base.html" %}
{% load django_vite %}
{% block title %}Server Error{% endblock %}
{% block head %}
{% vite_asset 'src/error.ts' %}
{% endblock %}
{% block content %}
<div id="app" data-code="500" data-title="Server error" data-message="Something went wrong on our end. Please try again later."></div>
{% endblock %}