Browse Source

Use BASE_DIR to make settings more robust

Fabien Schwob 5 years ago
parent
commit
bd1bd4a0d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vycontrol/vycontrol/settings.py

+ 1 - 1
vycontrol/vycontrol/settings.py

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