Django 1.2 introduced a new template loader, that stores data in cache ( django.template.loaders.cached.Loader
).
Unfortunatly, i failed to find any inf
The existing solutions written here broke around Django 1.9, due to the template loader system having been refactored. If you try to use the code that imports template_source_loaders
and that import fails, try this:
from django.template.loader import engines
for engine in engines.all():
engine.engine.template_loaders[0].reset()
This code assumes that your TEMPLATES
setting is using the default 'loaders'
option, or using only a single django.template.loaders.cached.Loader
.