Commit f4e462c7 by Matjaz Gregoric

Merge pull request #11316 from open-craft/remove-django-template-loaders

Remove default django template loaders.
parents 94d5b5db 434f1965
...@@ -19,6 +19,7 @@ class MakoLoader(object): ...@@ -19,6 +19,7 @@ class MakoLoader(object):
This is a Django loader object which will load the template as a This is a Django loader object which will load the template as a
Mako template if the first line is "## mako". It is based off BaseLoader Mako template if the first line is "## mako". It is based off BaseLoader
in django.template.loader. in django.template.loader.
We need this in order to be able to include mako templates inside main_django.html.
""" """
is_usable = False is_usable = False
......
...@@ -473,12 +473,10 @@ TEMPLATES = [ ...@@ -473,12 +473,10 @@ TEMPLATES = [
# Options specific to this backend. # Options specific to this backend.
'OPTIONS': { 'OPTIONS': {
'loaders': [ 'loaders': [
# We have to use mako-aware template loaders to be able to include
# mako templates inside django templates (such as main_django.html).
'edxmako.makoloader.MakoFilesystemLoader', 'edxmako.makoloader.MakoFilesystemLoader',
'edxmako.makoloader.MakoAppDirectoriesLoader', 'edxmako.makoloader.MakoAppDirectoriesLoader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
], ],
'context_processors': [ 'context_processors': [
'django.template.context_processors.request', 'django.template.context_processors.request',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment