18 lines
368 B
Python
18 lines
368 B
Python
from __future__ import unicode_literals
|
|
|
|
import yaml
|
|
|
|
from django.utils.module_loading import import_string
|
|
|
|
from .settings import (
|
|
setting_shared_storage, setting_shared_storage_arguments
|
|
)
|
|
|
|
sharedupload_storage = import_string(
|
|
dotted_path=setting_shared_storage.value
|
|
)(
|
|
**yaml.safe_load(
|
|
setting_shared_storage_arguments.value or '{}'
|
|
)
|
|
)
|