Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f4e462c7
Commit
f4e462c7
authored
Feb 18, 2016
by
Matjaz Gregoric
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11316 from open-craft/remove-django-template-loaders
Remove default django template loaders.
parents
94d5b5db
434f1965
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
common/djangoapps/edxmako/makoloader.py
+1
-0
lms/envs/common.py
+2
-4
No files found.
common/djangoapps/edxmako/makoloader.py
View file @
f4e462c7
...
...
@@ -19,6 +19,7 @@ class MakoLoader(object):
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
in django.template.loader.
We need this in order to be able to include mako templates inside main_django.html.
"""
is_usable
=
False
...
...
lms/envs/common.py
View file @
f4e462c7
...
...
@@ -473,12 +473,10 @@ TEMPLATES = [
# Options specific to this backend.
'OPTIONS'
:
{
'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.MakoAppDirectoriesLoader'
,
'django.template.loaders.filesystem.Loader'
,
'django.template.loaders.app_directories.Loader'
,
],
'context_processors'
:
[
'django.template.context_processors.request'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment