Context: Trying to over ride base_site.html when using django-admin-interface package. I have one file in main/templates/admin, which is base_site.html. And have {% extends "admin_interface:admin/base_site.html" %}
at top.
"app_dirs must not be set when loaders is defined."
django.core.exceptions.ImproperlyConfigured: app_dirs must not be set when loaders is defined.
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'main/templates/admin'),
os.path.join(BASE_DIR, 'main/templates/main'),
],
'APP_DIRS': True,
'OPTIONS': {
'loaders':[
'apptemplates.Loader',
],
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
Removing 'APP_DIRS' causes a TEMPLATE DOES NOT EXIST error.