Make template lookup path independent from $PWD

master
Robert Gerus 2020-03-08 19:01:58 +01:00
parent d44df4cc45
commit 6b5c97b638
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ ROOT_URLCONF = 'spejstore.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['templates/'], 'DIRS': [os.path.join(BASE_DIR, "templates")],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [