diff --git a/openedx/core/storage.py b/openedx/core/storage.py index bdae7d7e9e..9e7e52d94c 100644 --- a/openedx/core/storage.py +++ b/openedx/core/storage.py @@ -5,8 +5,9 @@ Django storage backends for Open edX. from django.conf import settings from django.contrib.staticfiles.storage import StaticFilesStorage -from django.core.files.storage import get_storage_class, FileSystemStorage +from django.core.files.storage import FileSystemStorage from django.utils.deconstruct import deconstructible +from django.utils.module_loading import import_string from functools import lru_cache from pipeline.storage import NonPackagingMixin from require.storage import OptimizedFilesMixin @@ -111,4 +112,5 @@ def get_storage(storage_class=None, **kwargs): the storage implementation makes http requests when instantiated, for example. """ - return get_storage_class(storage_class)(**kwargs) + storage_cls = import_string(storage_class or settings.DEFAULT_FILE_STORAGE) + return storage_cls(**kwargs)