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
b758c89e
Commit
b758c89e
authored
Feb 04, 2014
by
Bertrand Marron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepend theme template paths
Allow templates override.
parent
0f8919a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/startup.py
+2
-2
No files found.
lms/startup.py
View file @
b758c89e
...
@@ -48,8 +48,8 @@ def enable_theme():
...
@@ -48,8 +48,8 @@ def enable_theme():
theme_root
=
settings
.
ENV_ROOT
/
"themes"
/
settings
.
THEME_NAME
theme_root
=
settings
.
ENV_ROOT
/
"themes"
/
settings
.
THEME_NAME
# Include the theme's templates in the template search paths
# Include the theme's templates in the template search paths
settings
.
TEMPLATE_DIRS
.
append
(
theme_root
/
'templates'
)
settings
.
TEMPLATE_DIRS
.
insert
(
0
,
theme_root
/
'templates'
)
settings
.
MAKO_TEMPLATES
[
'main'
]
.
append
(
theme_root
/
'templates'
)
settings
.
MAKO_TEMPLATES
[
'main'
]
.
insert
(
0
,
theme_root
/
'templates'
)
edxmako
.
startup
.
run
()
edxmako
.
startup
.
run
()
# Namespace the theme's static files to 'themes/<theme_name>' to
# Namespace the theme's static files to 'themes/<theme_name>' to
...
...
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