Skip to content

Commit

Permalink
Merge pull request #90 from stuartmaxwell/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell authored Sep 25, 2024
2 parents 741b819 + fef14eb commit 5ce530a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
from django.views.generic import TemplateView

urlpatterns = []

if settings.DEBUG:
urlpatterns += [
path("__debug__/", include("debug_toolbar.urls")),
path("404", TemplateView.as_view(template_name="404.html")),
]

urlpatterns += [
Expand Down
12 changes: 12 additions & 0 deletions templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends 'base.html' %}
{% load static %}

{% block content %}
<main id="errorpage">
<div id="content">
<h1>An error occurred</h1>
<p class="lead">Sorry, that page cannot be found. The error has already been reported and will be investigated soon.</p>
<div><a role="button" href="/">{% include "svg/house-fill.svg" %} Return to home</a></div>
</div>
</main>
{% endblock content %}
4 changes: 4 additions & 0 deletions templates/svg/house-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions templates/svg/house.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5ce530a

Please sign in to comment.