From 6b5c97b6384c48d5b7adbe551683105d73ceb7b2 Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Sun, 8 Mar 2020 19:01:58 +0100 Subject: [PATCH] Make template lookup path independent from $PWD --- spejstore/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spejstore/settings.py b/spejstore/settings.py index 07cc79f..6991604 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -75,7 +75,7 @@ ROOT_URLCONF = 'spejstore.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': ['templates/'], + 'DIRS': [os.path.join(BASE_DIR, "templates")], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [