I am trying to override one of the admin templates for a django app build with wq (the species tracker example app). When I add the directory to the template I am using to override the admin template, like this:
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates'),
os.path.join(BASE_DIR, 'db/dictionary/templates'),
)
# TEMPLATE_DIRS = (
# os.path.join(BASE_DIR, 'templates'),
# # os.path.join(BASE_DIR, 'db/dictionary/templates'),
# )
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'db/dictionary/templates'),
],
'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',
],
# 'loaders': [
# 'django.template.loaders.filesystem.Loader',
# 'django.template.loaders.app_directories.Loader',
# ]
},
},
]
But in the second case, none of wq's templates render.
In django's documentation, they show how you can use multiple template backends for different folders of templates:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
'/home/html/example.com',
'/home/html/default',
],
},
{
'BACKEND': 'django.template.backends.jinja2.Jinja2',
'DIRS': [
'/home/html/jinja2',
],
},
]
I tried something similar, but I don't know what to put in the 'BACKEND' directive for the wq templates.
What can I do differently to override the admin template using the default template backend without interfering with wq's template rendering?