trying to get new templates to work

This commit is contained in:
Sam
2021-03-15 10:49:17 +00:00
parent 5714a661aa
commit a920a9fa61
6 changed files with 214 additions and 31 deletions

View File

@@ -85,7 +85,7 @@ TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, '../templates'),],
'APP_DIRS': True,
# 'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
@@ -93,6 +93,12 @@ TEMPLATES = [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
'loaders': [
(
'django.template.loaders.filesystem.Loader',
[os.path.join(BASE_DIR, '../templates')],
),
],
},
},
]
@@ -153,7 +159,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/2.2/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = 'static'
TAXONOMY_FILE = 'shop-taxonomy.es-ES.txt'