Git Product home page Git Product logo

django-aliyun-oss's Introduction

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'

  2. OSS_ACCESS_URL 阿里云存储访问地址

杭州节点外网: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
  1. OSS_ACCESS_KEY_ID 阿里云OSS KeyID String类型

  2. OSS_SECRET_ACCESS_KEY OSS Secret String类型

  3. OSS_STORAGE_BUCKET_NAME BUCKET名

  4. OSS_HEADERS(optional) 公共Response HEADER

OSS_HEADERS = {
    'Cache-Control': 'max-age=31536000',
}
  1. OSS_DEFAULT_ACL(optional) 文件访问权限 默认 'public-read'

django-aliyun-oss's People

Contributors

kkzxak47 avatar waenwj avatar wangtai avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.