diff options
author | Tim Graham <timograham@gmail.com> | 2016-09-03 09:06:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-03 09:06:33 -0400 |
commit | 277fe2e8f2ee35cd389b079ce7691491bb5738ec (patch) | |
tree | 22f68b9207297232dc65dccbd2c958ff19f89fa3 /tests/template_loader | |
parent | 2ced2f785d5aca0354abf5841d5449b7a49509dc (diff) | |
download | django-277fe2e8f2ee35cd389b079ce7691491bb5738ec.tar.gz |
Fixed #25788 -- Enabled the cached template loader if debug is False.
Diffstat (limited to 'tests/template_loader')
-rw-r--r-- | tests/template_loader/tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/template_loader/tests.py b/tests/template_loader/tests.py index 5e62574666..c3bb444175 100644 --- a/tests/template_loader/tests.py +++ b/tests/template_loader/tests.py @@ -11,11 +11,14 @@ from django.test.client import RequestFactory 'APP_DIRS': True, }, { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.request', ], + 'loaders': [ + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + ] }, }]) class TemplateLoaderTests(SimpleTestCase): |