From bb3d0485d4eeaaa79d4a42bf3b53866987fe8436 Mon Sep 17 00:00:00 2001 From: George Lacey Date: Mon, 10 May 2021 18:55:01 +0100 Subject: [PATCH] Create custom 404 page using base template --- borgweb/borg/templates/404.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 borgweb/borg/templates/404.html diff --git a/borgweb/borg/templates/404.html b/borgweb/borg/templates/404.html new file mode 100644 index 0000000..ac98876 --- /dev/null +++ b/borgweb/borg/templates/404.html @@ -0,0 +1,31 @@ +{% extends "borg/base.html" %} +{% load static %} + +{% block title %}Not Found{% endblock %} + +{% block script %} +{% endblock %} + +{% block style %} +html, body { + height: 80%; + } + + body { + display: flex; + align-items: center; + background-color: aliceblue; + text-align: center; + } +{% endblock %} + +{% block body %} + +
+
+

Page not found!

+
+
+ +{% endblock %} +