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
79815acc
Commit
79815acc
authored
Dec 03, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fall back on MITX_FEATURES env variable if FEATURES isn't found
For a smoother transition to the new world
parent
f3f4af80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
cms/envs/aws.py
+2
-1
lms/envs/aws.py
+2
-1
No files found.
cms/envs/aws.py
View file @
79815acc
...
...
@@ -138,7 +138,8 @@ COURSES_WITH_UNSAFE_CODE = ENV_TOKENS.get("COURSES_WITH_UNSAFE_CODE", [])
TIME_ZONE
=
ENV_TOKENS
.
get
(
'TIME_ZONE'
,
TIME_ZONE
)
for
feature
,
value
in
ENV_TOKENS
.
get
(
'FEATURES'
,
{})
.
items
():
ENV_FEATURES
=
ENV_TOKENS
.
get
(
'FEATURES'
,
ENV_TOKENS
.
get
(
'MITX_FEATURES'
,
{}))
for
feature
,
value
in
ENV_FEATURES
.
items
():
FEATURES
[
feature
]
=
value
LOGGING
=
get_logger_config
(
LOG_DIR
,
...
...
lms/envs/aws.py
View file @
79815acc
...
...
@@ -210,7 +210,8 @@ USE_I18N = ENV_TOKENS.get('USE_I18N', USE_I18N)
for
app
in
ENV_TOKENS
.
get
(
'ADDL_INSTALLED_APPS'
,
[]):
INSTALLED_APPS
+=
(
app
,)
for
feature
,
value
in
ENV_TOKENS
.
get
(
'FEATURES'
,
{})
.
items
():
ENV_FEATURES
=
ENV_TOKENS
.
get
(
'FEATURES'
,
ENV_TOKENS
.
get
(
'MITX_FEATURES'
,
{}))
for
feature
,
value
in
ENV_FEATURES
.
items
():
FEATURES
[
feature
]
=
value
WIKI_ENABLED
=
ENV_TOKENS
.
get
(
'WIKI_ENABLED'
,
WIKI_ENABLED
)
...
...
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