Contain QiniuStorageMixin, which makes filebrowser_safe compatible with Qiniu
Project description
Overview
========
Some methods are necessary for `filebrowser_safe` to browse the file storage
(e.g. `isfile`, `isdir`). Which can be achived by defining a `Mixin` class.
filebrowser_safe contains `Mixin` classes for famous storage providers like Amazon or Google.
Qiniu is a file service provider in China and of course not in the list.
This project defines an extension for filebrowser_safe to make it work with QiniuStorage (django-qiniu-storage).
# Usage
`pip install filebrowser-safe-mixin-qiniu`
Then, add the following lines at your django application's entry point.
```python
from qiniustorage.backends import QiniuStorage
from filebrowser_safe_mixin_qiniu.storage import QiniuStorageMixin
if QiniuStorageMixin not in QiniuStorage.__bases__:
QiniuStorage.__bases__ += (QiniuStorageMixin,)
```
========
Some methods are necessary for `filebrowser_safe` to browse the file storage
(e.g. `isfile`, `isdir`). Which can be achived by defining a `Mixin` class.
filebrowser_safe contains `Mixin` classes for famous storage providers like Amazon or Google.
Qiniu is a file service provider in China and of course not in the list.
This project defines an extension for filebrowser_safe to make it work with QiniuStorage (django-qiniu-storage).
# Usage
`pip install filebrowser-safe-mixin-qiniu`
Then, add the following lines at your django application's entry point.
```python
from qiniustorage.backends import QiniuStorage
from filebrowser_safe_mixin_qiniu.storage import QiniuStorageMixin
if QiniuStorageMixin not in QiniuStorage.__bases__:
QiniuStorage.__bases__ += (QiniuStorageMixin,)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for filebrowser_safe_mixin_qiniu-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1128a527833035964ae041e8632e134d004a5b95fb36f3c2c38c0c872c47eb |
|
MD5 | 450c98e035b8fb8d23ba65af061f8e0b |
|
BLAKE2b-256 | abe974bae20a1dabd49474a7461e290b0c1d94f15a3e0aa77e3b110928cc8784 |