Skip to main content

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


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)

Uploaded Source

Built Distribution

django_qns-0.0.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page