Skip to content

Commit d082d3d

Browse files
feanilkdmccormick
andauthored
fix: Make sure that the features proxy works w/devstack settings. (#37666)
Without this the devstack settings don't correctly proxy the features updates made to get devstack working. Co-authored-by: Kyle McCormick <[email protected]>
1 parent 8611e61 commit d082d3d

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

cms/envs/devstack.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
import logging
77
from os.path import abspath, dirname, join
88

9+
from openedx.core.lib.features_setting_proxy import FeaturesProxy
10+
911
from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
1012

13+
FEATURES = FeaturesProxy(globals())
14+
1115
# Don't use S3 in devstack, fall back to filesystem
1216
STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage'
1317
COURSE_IMPORT_EXPORT_STORAGE = 'django.core.files.storage.FileSystemStorage'

lms/envs/devstack.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414

1515
from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType
1616

17+
from openedx.core.lib.features_setting_proxy import FeaturesProxy
18+
1719
from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
1820

21+
FEATURES = FeaturesProxy(globals())
1922
# Don't use S3 in devstack, fall back to filesystem
2023
STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage'
2124
ORA2_FILEUPLOAD_BACKEND = 'django'

0 commit comments

Comments
 (0)