added 404 page + prepared for production setup
This commit is contained in:
13
templates/404.html
Normal file
13
templates/404.html
Normal file
@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block title %}404 Not Found{% endblock %}
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="{% static "error.css" %}">
|
||||
{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{% block main %}
|
||||
<div class="wrapper">
|
||||
<h1 class="title">Page not found</h1>
|
||||
<p class="desc">Oops, page <span class="url">{{ request.path }}</span> could not be found. Go back to <a href="{% url "dashboard" %}">Dashboard</a></p>
|
||||
</div>
|
||||
{% endblock %}
|
@ -22,6 +22,7 @@
|
||||
{% block main %}{% endblock %}
|
||||
</main>
|
||||
<footer>
|
||||
{% if debug %}<span class="debug">Debug</span>{% endif %}
|
||||
<span><i>Time Dispatcher v{{ version }}</i></span>
|
||||
<span class="sep"></span>
|
||||
<span><a href="https://git.kb28.ch/HEL/TimeDispatcher" target="_blank">Gitea</a></span>
|
||||
|
Reference in New Issue
Block a user