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
ba07dec4
Commit
ba07dec4
authored
Nov 01, 2017
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move edxmako startup to AppConfig::ready.
parent
6939a581
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
cms/envs/common.py
+1
-1
common/djangoapps/edxmako/apps.py
+7
-5
lms/envs/common.py
+1
-1
No files found.
cms/envs/common.py
View file @
ba07dec4
...
@@ -965,7 +965,7 @@ INSTALLED_APPS = [
...
@@ -965,7 +965,7 @@ INSTALLED_APPS = [
'openedx.core.djangoapps.datadog'
,
'openedx.core.djangoapps.datadog'
,
# For asset pipelining
# For asset pipelining
'edxmako'
,
'edxmako
.apps.EdxMakoConfig
'
,
'pipeline'
,
'pipeline'
,
'static_replace'
,
'static_replace'
,
'require'
,
'require'
,
...
...
common/djangoapps/edxmako/
startup
.py
→
common/djangoapps/edxmako/
apps
.py
View file @
ba07dec4
"""
Initialize the mako template lookup
"""
from
django.conf
import
settings
from
django.apps
import
AppConfig
from
django.conf
import
settings
from
.
import
add_lookup
,
clear_lookups
from
.
import
add_lookup
,
clear_lookups
def
run
():
class
EdxMakoConfig
(
AppConfig
):
name
=
'edxmako'
verbose_name
=
"edX Mako Templating"
def
ready
(
self
):
"""
"""
Setup mako lookup directories.
Setup mako lookup directories.
...
...
lms/envs/common.py
View file @
ba07dec4
...
@@ -2039,7 +2039,7 @@ INSTALLED_APPS = [
...
@@ -2039,7 +2039,7 @@ INSTALLED_APPS = [
'status'
,
'status'
,
# For asset pipelining
# For asset pipelining
'edxmako'
,
'edxmako
.apps.EdxMakoConfig
'
,
'pipeline'
,
'pipeline'
,
'static_replace'
,
'static_replace'
,
'webpack_loader'
,
'webpack_loader'
,
...
...
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