From d082d3d87ceb4033f867b5327a9a660564c15a76 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 20 Nov 2025 17:14:47 -0500 Subject: [PATCH] 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 --- cms/envs/devstack.py | 4 ++++ lms/envs/devstack.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index d683f48708..58299fd313 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -6,8 +6,12 @@ Specific overrides to the base prod settings to make development easier. import logging from os.path import abspath, dirname, join +from openedx.core.lib.features_setting_proxy import FeaturesProxy + from .production import * # pylint: disable=wildcard-import, unused-wildcard-import +FEATURES = FeaturesProxy(globals()) + # Don't use S3 in devstack, fall back to filesystem STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage' COURSE_IMPORT_EXPORT_STORAGE = 'django.core.files.storage.FileSystemStorage' diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index aa015d452e..dd7097df71 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -14,8 +14,11 @@ from edx_django_utils.plugins import add_plugins from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType +from openedx.core.lib.features_setting_proxy import FeaturesProxy + from .production import * # pylint: disable=wildcard-import, unused-wildcard-import +FEATURES = FeaturesProxy(globals()) # Don't use S3 in devstack, fall back to filesystem STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage' ORA2_FILEUPLOAD_BACKEND = 'django'