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.
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c082574847e87ec498a9e0cb3f93ea2f475257fb5cab01a5deec1dc8f964ef97 |
|
MD5 | a285efde13885f2506a4775bb8d126cb |
|
BLAKE2b-256 | c26158113057da45a4ef1c4a62666a142d84fcd12316fa906444bf34a4f3b736 |
Close
Hashes for django_qiniu_storage-1.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04bfdc00474e8a9c1190e119c8b79e663bcdd50103ccd81c176bb01dcf4727f5 |
|
MD5 | 9481378abcb8d654b830b49ffa239bea |
|
BLAKE2b-256 | 65dada6c6e0837659dd567cc672bac23a5eed2775e19f2e319b8e947b62a6581 |