1👍
You probably miss the 'BACKEND': 'django.template.backends.django.DjangoTemplates'
entry inside the TEMPLATES
setting, in your settings file. Check out https://docs.djangoproject.com/en/dev/ref/settings/#templates
0👍
Make sure that all of your entries are listed in single dictionary. For instance, if you are following along with the ‘Integrating a third-party application’ tutorial, when they show the following…
'OPTIONS': {
'context_processors': [
# ...
'aldryn_boilerplates.context_processors.boilerplate',
],
'loaders': [
# ...
'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
],
},
},
…you need to integrate it into your existing dictionary. Your TEMPLATES array would then look like the following:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates'),],
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.request',
'django.template.context_processors.csrf',
'sekizai.context_processors.sekizai',
'cms.context_processors.cms_settings'
'aldryn_boilerplates.context_processors.boilerplate',
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader',
'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
],
},
}
]
👤Kal
- Comments not displaying in Django application
- Webpack setup, webpack doesn't resolve(pack into bundle) css files
Source:stackexchange.com