Files
mayan-edms/apps/storage/backends/filebasedstorage.py
2011-04-05 00:04:11 -04:00

14 lines
351 B
Python

import os
from django.core.files.storage import FileSystemStorage
from storage.conf.settings import FILESTORAGE_LOCATION
class FileBasedStorage(FileSystemStorage):
separator = os.path.sep
def __init__(self, *args, **kwargs):
super(FileBasedStorage, self).__init__(*args, **kwargs)
self.location = FILESTORAGE_LOCATION