Django storage for Qiniu Cloud Storage
Project description
Django storage for 七牛云存储
Install
pip install django-qiniu-storage
Configurations
Django Qiniu Storage 需要以下几个配置才能正常工作。这些配置通过可以环境变量或 setting.py 来设置。环境变量的优先级要高于 setting.py 。
QINIU_ACCESS_KEY
七牛给开发者分配的 AccessKey
QINIU_SECRET_KEY
七牛给开发者分配的 Secret
QINIU_BUCKET_NAME
用来存放文件的七牛空间(bucket)的名字
QINIU_BUCKET_DOMAIN
七牛空间(bucket)的域名
Usage
在 setting.py 里设置 DEFAULT_FILE_STORAGE 为 qiniustorage.backends.QiniuStorage
DEFAULT_FILE_STORAGE = 'qiniustorage.backends.QiniuStorage'
Documentation
It’s hosted on the Read The Doc.
Changelog
1.1.0 加上了比较完整的单元测试。Django 1.7 相关的 bug fix.
1.0.1 Bug fix. 使用 6.x 版本的 七牛 Python SDK.
License
基于MIT许可证发布
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
Built Distribution
Close
Hashes for django-qiniu-storage-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a789789490de0940bcfc735b44ab01e3a557ed107c4ddd998ac51aa814806fd3 |
|
MD5 | 379fce6bf23c9fafaf54fcd53fddf705 |
|
BLAKE2b-256 | 457c11b8d1a5ab5bf102014f9e8965b3581889b84190a82071f0b36bcd5cce6d |
Close
Hashes for django_qiniu_storage-1.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74a13cfaed551a607418558737ed5d7d707287c55db2de4bd57d136393cabd87 |
|
MD5 | 0f3480369f920e4fa0186d7fb8fd33cc |
|
BLAKE2b-256 | 790d535218c01ab7be1068e3948faa765af9856b9aa24741b7d3da175b015042 |