diff --git a/access_controller/settings.py b/access_controller/settings.py index 50d3201..a1f54ab 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'. @@ -116,8 +116,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 4507bc7..0d18dcd 100644 --- a/main/templates/base/base.html +++ b/main/templates/base/base.html @@ -1,6 +1,7 @@ +{% load static %}
diff --git a/main/templates/base/menu.html b/main/templates/base/menu.html index a7c0c3f..22c2ef8 100644 --- a/main/templates/base/menu.html +++ b/main/templates/base/menu.html @@ -1,10 +1,11 @@ +{% load static %}