Enable the cached template loader
The cached template loader is now the default.
It will speed up situations where `{% include %}` is called
in a loop.
@@ -303,6 +303,7 @@ class CommunityBaseSettings(Settings):
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': dirs,
+ 'APP_DIRS': True,
'OPTIONS': {
'debug': self.DEBUG,
'context_processors': [
@@ -315,10 +316,6 @@ class CommunityBaseSettings(Settings):
# Read the Docs processor
'readthedocs.core.context_processors.readthedocs_processor',
],
- 'loaders': [
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
- ],
},
},
]
