Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
b05e6a40
Commit
b05e6a40
authored
Aug 12, 2016
by
Simon Chen
Committed by
GitHub
Aug 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #235 from edx/schen/ECOM-5126
ECOM-5126 create the course-discovery setup for storage backend
parents
a5800aac
8ddd65d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
course_discovery/settings/base.py
+1
-0
course_discovery/settings/production.py
+8
-0
requirements/base.txt
+3
-0
No files found.
course_discovery/settings/base.py
View file @
b05e6a40
...
@@ -43,6 +43,7 @@ THIRD_PARTY_APPS = [
...
@@ -43,6 +43,7 @@ THIRD_PARTY_APPS = [
'compressor'
,
'compressor'
,
'django_filters'
,
'django_filters'
,
'django_fsm'
,
'django_fsm'
,
'storages'
,
]
]
PROJECT_APPS
=
[
PROJECT_APPS
=
[
...
...
course_discovery/settings/production.py
View file @
b05e6a40
...
@@ -19,6 +19,9 @@ LOGGING['handlers']['local']['level'] = 'INFO'
...
@@ -19,6 +19,9 @@ LOGGING['handlers']['local']['level'] = 'INFO'
# the values read from disk should UPDATE the pre-configured dicts.
# the values read from disk should UPDATE the pre-configured dicts.
DICT_UPDATE_KEYS
=
(
'JWT_AUTH'
,)
DICT_UPDATE_KEYS
=
(
'JWT_AUTH'
,)
# This may be overridden by the YAML in PROGRAMS_CFG, but it should be here as a default.
MEDIA_STORAGE_BACKEND
=
{}
CONFIG_FILE
=
get_env_setting
(
'COURSE_DISCOVERY_CFG'
)
CONFIG_FILE
=
get_env_setting
(
'COURSE_DISCOVERY_CFG'
)
with
open
(
CONFIG_FILE
)
as
f
:
with
open
(
CONFIG_FILE
)
as
f
:
config_from_yaml
=
yaml
.
load
(
f
)
config_from_yaml
=
yaml
.
load
(
f
)
...
@@ -33,6 +36,11 @@ with open(CONFIG_FILE) as f:
...
@@ -33,6 +36,11 @@ with open(CONFIG_FILE) as f:
vars
()
.
update
(
config_from_yaml
)
vars
()
.
update
(
config_from_yaml
)
# Unpack media storage settings.
# It's important we unpack here because of https://github.com/edx/configuration/pull/3307
vars
()
.
update
(
MEDIA_STORAGE_BACKEND
)
if
'EXTRA_APPS'
in
locals
():
if
'EXTRA_APPS'
in
locals
():
INSTALLED_APPS
+=
EXTRA_APPS
INSTALLED_APPS
+=
EXTRA_APPS
...
...
requirements/base.txt
View file @
b05e6a40
boto==2.42.0
cryptography==1.4
cryptography==1.4
django==1.8.14
django==1.8.14
django-choices==1.4.3
django-choices==1.4.3
...
@@ -10,6 +11,7 @@ django-haystack==2.4.1
...
@@ -10,6 +11,7 @@ django-haystack==2.4.1
django-libsass==0.7
django-libsass==0.7
django-simple-history==1.8.1
django-simple-history==1.8.1
django-sortedm2m==1.3.2
django-sortedm2m==1.3.2
django-storages==1.5.0
django-waffle==0.11.1
django-waffle==0.11.1
djangorestframework==3.3.3
djangorestframework==3.3.3
djangorestframework-csv==1.4.1
djangorestframework-csv==1.4.1
...
@@ -26,6 +28,7 @@ edx-opaque-keys==0.3.1
...
@@ -26,6 +28,7 @@ edx-opaque-keys==0.3.1
edx-rest-api-client==1.6.0
edx-rest-api-client==1.6.0
elasticsearch>=1.0.0,<2.0.0
elasticsearch>=1.0.0,<2.0.0
html2text==2016.5.29
html2text==2016.5.29
pillow==3.3.0
pycountry==1.20
pycountry==1.20
python-dateutil==2.5.3
python-dateutil==2.5.3
pytz==2016.4
pytz==2016.4
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