Merge "Add Cached loader for templates"

This commit is contained in:
Jenkins 2015-12-08 17:12:02 +00:00 committed by Gerrit Code Review
commit 098d29e675
2 changed files with 13 additions and 3 deletions

View File

@ -127,9 +127,11 @@ TEMPLATE_CONTEXT_PROCESSORS = (
)
TEMPLATE_LOADERS = (
('django.template.loaders.cached.Loader', (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'horizon.loaders.TemplateLoader',
)),
)
TEMPLATE_DIRS = (

View File

@ -0,0 +1,8 @@
---
features:
- Added the Django template cached loader, so templates are stored in memory.
See https://docs.djangoproject.com/en/1.8/ref/templates/api/#django.template.loaders.cached.Loader
upgrade:
- Custom template tags must have a thread-safe Node implementation to work
with the the cached loader. See
https://docs.djangoproject.com/en/1.8/howto/custom-template-tags/#template-tag-thread-safety