Standardize the way storages are used. All apps that use storage now define their storages in the .storages modules instead of the .runtime module. The storage.backends.filebasedstorage.FileBasedStorage has been remove, instead Django's default storage is used and each app is responsible of specifying their default path.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
@@ -7,9 +7,9 @@ from smart_settings import Namespace
|
||||
namespace = Namespace(name='signatures', label=_('Document signatures'))
|
||||
setting_storage_backend = namespace.add_setting(
|
||||
global_name='SIGNATURES_STORAGE_BACKEND',
|
||||
default='storage.backends.filebasedstorage.FileBasedStorage'
|
||||
default='django.core.files.storage.FileSystemStorage'
|
||||
)
|
||||
setting_storage_backend_arguments = namespace.add_setting(
|
||||
global_name='SIGNATURES_STORAGE_BACKEND_ARGUMENTS',
|
||||
default=''
|
||||
default='{location: mayan/media/document_storage}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user