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
2.0.0 使用 7.x 版本的 Python SDK。同时支持 Python 2 和 Python 3, 但也因此不再支持 Django 1.4。
新建 ”1.x“ 分支。 今后主分支将使用 7.x 版本的 Python SDK。2.x 会同时支持 Python 2 和 Python 3。
1.2.0 主要是测试方面的改进。利用 Travic CI 对 (Python 2.6, 2.7)×( Django 1.4 -1.7) 的每个组合都跑一遍单元测试。
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
Hashes for django-qiniu-storage-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1012ad893294137046ec9ed5c86cad45c907cfbf0a06688fee752427067d39 |
|
MD5 | c51ad198270756f73ed6c1bf3a8fb6c4 |
|
BLAKE2b-256 | 9c63a39157b5ad48e1107d67d6cf0853cd78e6f6a8c749cab22caa8d3afc8bb3 |
Hashes for django_qiniu_storage-2.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8b83dcab5fa36d8eb3278d67afc037646cfe15a267b9cf719eafad8edc1ed85 |
|
MD5 | 22c466c7883c4e3bc65e20d872e3f20c |
|
BLAKE2b-256 | af071598d01870b3158df20410bccc6bee13ec866945cc4f705e2c5b8008709c |