Fixed #25788 -- Enabled the cached template loader if debug is False.

This commit is contained in:
Tim Graham 2016-09-03 09:06:33 -04:00 committed by GitHub
parent 2ced2f785d
commit 277fe2e8f2
6 changed files with 55 additions and 13 deletions

View file

@ -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):