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
b594bd48
Commit
b594bd48
authored
Jul 28, 2014
by
Usman Khalid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4427 from edx/usman/lms6507-mako-dir
Use /tmp/mako_lms and /tmp/mako_cms for compiled mako templates.
parents
c770f6e7
682e3108
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cms/envs/common.py
+2
-2
lms/envs/common.py
+2
-2
No files found.
cms/envs/common.py
View file @
b594bd48
...
@@ -130,8 +130,8 @@ GEOIP_PATH = REPO_ROOT / "common/static/data/geoip/GeoIP.dat"
...
@@ -130,8 +130,8 @@ GEOIP_PATH = REPO_ROOT / "common/static/data/geoip/GeoIP.dat"
############################# WEB CONFIGURATION #############################
############################# WEB CONFIGURATION #############################
# This is where we stick our compiled template files.
# This is where we stick our compiled template files.
from
tempdir
import
mkdtemp_clean
import
tempfile
MAKO_MODULE_DIR
=
mkdtemp_clean
(
'mako
'
)
MAKO_MODULE_DIR
=
os
.
path
.
join
(
tempfile
.
gettempdir
(),
'mako_cms
'
)
MAKO_TEMPLATES
=
{}
MAKO_TEMPLATES
=
{}
MAKO_TEMPLATES
[
'main'
]
=
[
MAKO_TEMPLATES
[
'main'
]
=
[
PROJECT_ROOT
/
'templates'
,
PROJECT_ROOT
/
'templates'
,
...
...
lms/envs/common.py
View file @
b594bd48
...
@@ -318,8 +318,8 @@ OPENID_PROVIDER_TRUSTED_ROOTS = ['cs50.net', '*.cs50.net']
...
@@ -318,8 +318,8 @@ OPENID_PROVIDER_TRUSTED_ROOTS = ['cs50.net', '*.cs50.net']
################################## EDX WEB #####################################
################################## EDX WEB #####################################
# This is where we stick our compiled template files. Most of the app uses Mako
# This is where we stick our compiled template files. Most of the app uses Mako
# templates
# templates
from
tempdir
import
mkdtemp_clean
import
tempfile
MAKO_MODULE_DIR
=
mkdtemp_clean
(
'mako
'
)
MAKO_MODULE_DIR
=
os
.
path
.
join
(
tempfile
.
gettempdir
(),
'mako_lms
'
)
MAKO_TEMPLATES
=
{}
MAKO_TEMPLATES
=
{}
MAKO_TEMPLATES
[
'main'
]
=
[
PROJECT_ROOT
/
'templates'
,
MAKO_TEMPLATES
[
'main'
]
=
[
PROJECT_ROOT
/
'templates'
,
COMMON_ROOT
/
'templates'
,
COMMON_ROOT
/
'templates'
,
...
...
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