djblets.template.loaders.conditional_cached¶
- class Loader(engine, loaders)[source]¶
Bases:
Loader
Caches template loading results only if not in developer mode.
This extends Django’s built-in ‘cached’ template loader to only perform caching if
settings.PRODUCTION
is False. That helps to keep the site nice and speedy when in production, without causing headaches during development.- __annotations__ = {}¶