add qiniuyun storage support for Django
Project description
Django QiNiu Cloud Storage
add qiniu cloud support for Django
install
pip install django-qns
usage
change the default storage to django-qns:
STATICFILES_STORAGE = 'storage.backends.qiniu_storage.QiNiuStorage'
or
DEFAULT_FILE_STORAGE = 'storage.backends.qiniu_storage.QiNiuStorage'
add configure to the django-qns in settings.py
:
QINIU_STORAGE = {
'access_key': 'ak',
'secret_key': 'sk',
'bucket_name': 'your bucket name',
'domain': 'http://example.com',
'prefix': 'some-prefix'
}
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
django-qns-0.0.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for django_qns-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 973c03e7577b1bbbc39db326c9fc9fe70b97de3e65b8d13e17d3591a3a513634 |
|
MD5 | 447ce438122cc7164fe7ef563a8bdb9f |
|
BLAKE2b-256 | 8038778be9ccf5476b93559b800f3177da4d2637235916d2da5917c23a90d8e5 |