Replace custom 'load_backend' with Django's 'import_string'.

This commit is contained in:
Roberto Rosario
2015-04-07 16:29:43 -04:00
parent 0e3e34bdf1
commit 2044c94893
8 changed files with 15 additions and 26 deletions

View File

@@ -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)()