Skip to main content

django aliyun oss backend

Project description

django-aliyun-oss
=================

Django backends storages for Aliyun OSS

嵌入了Aliyun OSS Python SDK开发包 0.3.2

=================
配置说明:

编辑settings.py

1. DEFAULT_FILE_STORAGE = 'aliyun_oss.backends.oss.OSSStorage'

1. OSS_ACCESS_URL 阿里云存储访问地址
<pre>
杭州节点外网:oss.aliyuncs.com
oss-cn-hangzhou.aliyuncs.com
青岛节点外网:oss-cn-qingdao.aliyuncs.com
杭州节点内网:oss-internal.aliyuncs.com
oss-cn-hangzhou-internal.aliyuncs.com
青岛节点内网:oss-cn-qingdao-internal.aliyuncs.com
</pre>
1. OSS_ACCESS_KEY_ID 阿里云OSS KeyID String类型

1. OSS_SECRET_ACCESS_KEY OSS Secret String类型

1. OSS_STORAGE_BUCKET_NAME BUCKET名


1. OSS_HEADERS(optional) 公共Response HEADER
<pre>
OSS_HEADERS = {
'Cache-Control': 'max-age=31536000',
}
</pre>

1. OSS_DEFAULT_ACL(optional) 文件访问权限 默认 'public-read'

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-aliyun-oss-0.3.tar.gz (22.7 kB view details)

Uploaded Source

File details

Details for the file django-aliyun-oss-0.3.tar.gz.

File metadata

File hashes

Hashes for django-aliyun-oss-0.3.tar.gz
Algorithm Hash digest
SHA256 f6035c6b8767d532811b5e5371e6a19f72efbf5ad3fb7b48185ba22de760f2be
MD5 8dc900d031a7434a35c9e6922ec8df85
BLAKE2b-256 91086578bd89f62bcb4964cb9150579d450a5ff31ed0acd09e9e5f15a55cc803

See more details on using hashes here.

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