From f959dc7016778af4266e2031030ada0b046ad5fe Mon Sep 17 00:00:00 2001 From: "Ing. Jan KRCMAR" Date: Tue, 6 Jun 2017 12:49:33 +0200 Subject: [PATCH] settings: TEMPLATE_DIRS is deprecated, using TEMPLATES instead --- webvirtcloud/settings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/webvirtcloud/settings.py b/webvirtcloud/settings.py index 9e0ff3a..f78a02b 100644 --- a/webvirtcloud/settings.py +++ b/webvirtcloud/settings.py @@ -78,9 +78,13 @@ STATICFILES_DIRS = ( os.path.join(BASE_DIR, "static"), ) -TEMPLATE_DIRS = ( - os.path.join(BASE_DIR, 'templates'), -) +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [ os.path.join(BASE_DIR, 'templates'), ], + 'APP_DIRS': True, + } +] ## WebVirtCloud settings