Replace custom 'load_backend' with Django's 'import_string'.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from common.utils import load_backend
|
||||
from django.utils.module_loading import import_string
|
||||
|
||||
from .settings import STORAGE_BACKEND
|
||||
|
||||
storage_backend = load_backend(STORAGE_BACKEND)()
|
||||
storage_backend = import_string(STORAGE_BACKEND)()
|
||||
|
||||
Reference in New Issue
Block a user