From 43c856f22dafc9dd586aebc004a61462776eab45 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Sat, 21 Oct 2023 14:54:31 +0200 Subject: [PATCH] Add: template dirs --- archivist/core/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archivist/core/settings.py b/archivist/core/settings.py index fd3e5cd..f6b07fd 100644 --- a/archivist/core/settings.py +++ b/archivist/core/settings.py @@ -65,11 +65,13 @@ MIDDLEWARE = [ ] ROOT_URLCONF = 'core.urls' +TEMPLATE_DIR_APPS = os.path.join(CORE_DIR, "apps/templates") # ROOT dir for templates +TEMPLATE_DIR_SITES = os.path.join(CORE_DIR, "sites/templates") TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [TEMPLATE_DIR_APPS, TEMPLATE_DIR_SITES, "templates/",], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [