2
As you can see in the official release django docs, in version 1.8 things have changed regarding how templates parameters are configured.
TEMPLATE_DIRS
has been deprecated, so you can remove it from settings.py
.
Instead, in TEMPLATES
, set the DIRS
key correctly (it is empty now).
For example:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates'), ], # check the path depending on your prj structure
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
Source:stackexchange.com