Add: template dirs

This commit is contained in:
Aroy-Art 2023-10-21 14:54:31 +02:00
parent 846f6ca869
commit 43c856f22d
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -65,11 +65,13 @@ MIDDLEWARE = [
] ]
ROOT_URLCONF = 'core.urls' 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 = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [], 'DIRS': [TEMPLATE_DIR_APPS, TEMPLATE_DIR_SITES, "templates/",],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [