Document file storage is can now be changed from the settings.py file, better configuration options names
This commit is contained in:
8
apps/documents/storage.py
Normal file
8
apps/documents/storage.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
|
||||
class DocumentStorage(FileSystemStorage):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(DocumentStorage, self).__init__(*args, **kwargs)
|
||||
self.location='document_storage'
|
||||
self.base_url='document_storage'
|
||||
|
||||
Reference in New Issue
Block a user