upyun.com storage class for django
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
django_upyun
.gitignore
README.md
setup.py
tests.py

README.md

django-upyun

django storage for 又拍云存储

INSTALL

$ pip install django-upyun-storage

USAGE

修改 settings.py

UPYUN_BUCKET = "空间名称"
UPYUN_ACCOUNT = "操作员用户名"
UPYUN_PASSWORD = "操作员密码"
STATICFILES_STORAGE = 'django_upyun.storage.UpYunStorage'

将静态文件上传到又拍云CDN

$ python manage.py collectstatic