From 298baa31981bbec9369a3880347fc8650f73485b Mon Sep 17 00:00:00 2001 From: Dmitriy Andreev Date: Wed, 10 Feb 2021 21:18:38 +0300 Subject: [PATCH] Added site logo --- access_controller/settings.py | 5 +++-- main/templates/base/base.html | 1 + main/templates/base/menu.html | 5 +++-- staticfiles/main/img/logo.png | Bin 0 -> 53835 bytes 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 staticfiles/main/img/logo.png diff --git a/access_controller/settings.py b/access_controller/settings.py index dc44189..caf4521 100644 --- a/access_controller/settings.py +++ b/access_controller/settings.py @@ -9,7 +9,7 @@ https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ - +import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. @@ -121,8 +121,9 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' +STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = [ - 'static' + os.path.join(BASE_DIR, 'staticfiles'), ] MEDIA_ROOT = BASE_DIR / 'media' diff --git a/main/templates/base/base.html b/main/templates/base/base.html index e41acf5..071c914 100644 --- a/main/templates/base/base.html +++ b/main/templates/base/base.html @@ -1,5 +1,6 @@ +{% load static %} diff --git a/main/templates/base/menu.html b/main/templates/base/menu.html index ca31bd0..4aabc46 100644 --- a/main/templates/base/menu.html +++ b/main/templates/base/menu.html @@ -1,10 +1,11 @@ +{% load static %}
-