Added site logo

This commit is contained in:
Dmitriy Andreev 2021-02-10 21:18:38 +03:00
parent 972ee3e4d4
commit 298baa3198
4 changed files with 7 additions and 4 deletions

View File

@ -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'

View File

@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="ru" class="h-100">
{% load static %}
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

View File

@ -1,10 +1,11 @@
{% load static %}
<header>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<nav class="navbar navbar-light" style="background-color: #a3f2fd;">
<nav class="navbar navbar-light" style="background-color: #00FF00;">
<a class="navbar-brand" href="#">
<img src="media/images/access.png" width="30" height="30" class="d-inline-block align-top" alt="" loading="lazy">
<img src="{% static 'main/img/logo.png' %}" width="30" height="30" class="d-inline-block align-top" alt="" loading="lazy">
Access Controller
</a>
{% if request.user.is_authenticated %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB