From 6f8b3b13c75606f0bf1f791595db453276fe261f Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 8 May 2018 15:56:03 +0300 Subject: [PATCH] Add 404 page --- project/settings.py | 1 + templates/404.html | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 templates/404.html diff --git a/project/settings.py b/project/settings.py index e72c3c78..24ee180e 100644 --- a/project/settings.py +++ b/project/settings.py @@ -84,6 +84,7 @@ TEMPLATES = [ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ 'project', + 'templates', ], 'OPTIONS': { 'context_processors': [ diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 00000000..af3ad472 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,13 @@ +{% extends "templates/lilcity/index.html" %} {% load static %} +{% load static %} + +{% block content %} +
+
+
+
Адрес не найден.
+
+ ПЕРЕЙТИ НА ГЛАВНУЮ +
+
+{% endblock content %}