Skip to content

Commit 06d0bee

Browse files
authored
1 parent 8d1c033 commit 06d0bee

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

py_configuration_files/cms.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
1010

11+
try:
12+
from openedx.core.lib.features_setting_proxy import FeaturesProxy
13+
FEATURES = FeaturesProxy(globals())
14+
except ImportError:
15+
pass
16+
1117
# Don't use S3 in devstack, fall back to filesystem
1218
STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage'
1319
COURSE_IMPORT_EXPORT_STORAGE = 'django.core.files.storage.FileSystemStorage'

py_configuration_files/lms.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
1717

18+
try:
19+
from openedx.core.lib.features_setting_proxy import FeaturesProxy
20+
FEATURES = FeaturesProxy(globals())
21+
except ImportError:
22+
pass
23+
1824
# Don't use S3 in devstack, fall back to filesystem
1925
STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage'
2026
ORA2_FILEUPLOAD_BACKEND = 'django'

0 commit comments

Comments
 (0)