def __init__(self, storage_path=None, **options):
        """
        Initialize a Django Storage instance with given options.

        :param storage_path: Path to a Django Storage class with dot style
                             If ``None``, ``settings.DBBACKUP_STORAGE`` will
                             be used.
        :type storage_path: str
        """
        self._storage_path = storage_path or settings.STORAGE
        options = options.copy()
        options.update(settings.STORAGE_OPTIONS)
        options = dict([(key.lower(), value) for key, value in options.items()])
        self.storageCls = get_storage_class(self._storage_path)
        self.storage = self.storageCls(**options)
        self.name = self.storageCls.__name__
def __init__ ( self , storage_path = None , ** options ) : self . _storage_path = storage_path or settings . STORAGE options = options . copy ( ) options . update ( settings . STORAGE_OPTIONS ) options = dict ( [ ( key . lower ( ) , value ) for key , value in options . items ( ) ] ) self . storageCls = get_storage_class ( self . _storage_path ) self . storage = self . storageCls ( ** options ) self . name = self . storageCls . __name__
Initialize a Django Storage instance with given options.

        :param storage_path: Path to a Django Storage class with dot style
                             If ``None``, ``settings.DBBACKUP_STORAGE`` will
                             be used.
        :type storage_path: str