From 9c4bb7a5dd16a4699ce7bafe1c30e38bc45aab98 Mon Sep 17 00:00:00 2001 From: Chintan Joshi Date: Mon, 8 Sep 2025 09:34:11 +0000 Subject: [PATCH] chore: remove deprecated storage related settings --- py_configuration_files/cms.py | 4 ++-- py_configuration_files/lms.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/py_configuration_files/cms.py b/py_configuration_files/cms.py index 25c9427..ee1baad 100644 --- a/py_configuration_files/cms.py +++ b/py_configuration_files/cms.py @@ -9,7 +9,7 @@ from .production import * # pylint: disable=wildcard-import, unused-wildcard-import # Don't use S3 in devstack, fall back to filesystem -del DEFAULT_FILE_STORAGE +STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage' COURSE_IMPORT_EXPORT_STORAGE = 'django.core.files.storage.FileSystemStorage' USER_TASKS_ARTIFACT_STORAGE = COURSE_IMPORT_EXPORT_STORAGE @@ -57,7 +57,7 @@ # Skip packaging and optimization in development PIPELINE['PIPELINE_ENABLED'] = False -STATICFILES_STORAGE = 'openedx.core.storage.DevelopmentStorage' +STORAGES['staticfiles']['BACKEND'] = 'openedx.core.storage.DevelopmentStorage' # Revert to the default set of finders as we don't want the production pipeline STATICFILES_FINDERS = [ diff --git a/py_configuration_files/lms.py b/py_configuration_files/lms.py index 749446f..297e175 100644 --- a/py_configuration_files/lms.py +++ b/py_configuration_files/lms.py @@ -16,7 +16,7 @@ from .production import * # pylint: disable=wildcard-import, unused-wildcard-import # Don't use S3 in devstack, fall back to filesystem -del DEFAULT_FILE_STORAGE +STORAGES['default']['BACKEND'] = 'django.core.files.storage.FileSystemStorage' ORA2_FILEUPLOAD_BACKEND = 'django' @@ -118,7 +118,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing ########################### PIPELINE ################################# PIPELINE['PIPELINE_ENABLED'] = False -STATICFILES_STORAGE = 'openedx.core.storage.DevelopmentStorage' +STORAGES['staticfiles']['BACKEND'] = 'openedx.core.storage.DevelopmentStorage' # Revert to the default set of finders as we don't want the production pipeline STATICFILES_FINDERS = [