Document file storage is can now be changed from the settings.py file, better configuration options names

This commit is contained in:
Roberto Rosario
2011-02-06 22:22:01 -04:00
parent f38561099c
commit 1d70d68505
4 changed files with 50 additions and 33 deletions

View 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'