Эх сурвалжийг харах

Use BASE_DIR to make settings more robust

Fabien Schwob 5 жил өмнө
parent
commit
bd1bd4a0d6

+ 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': [