Skip to main content

Cloud media manager for Django, support for aliyun OSS, Tencent COS, Huawei OBS

Project description

Cloud media manager for django

pypi python wheel l Maintainability

Support for aliyun OSS, Tencent COS, Huawei OBS

Install

pip install django-cloudmedia

add settings.py:

INSTALLED_APPS = [
    'cloudmedia',
    ...
]

Usage

Configure

add settings.py:

# set the default cloud object storage
DEFAULT_FILE_STORAGE = 'cloudmedia.storage.obs.OBSStorage'

COS_SECRET_ID = ''
COS_SECRET_KEY = ''
COS_REGION = 'ap-shanghai'
COS_SCHEME = 'https'
COS_BUCKET = ''
COS_BASE_URI = '' # for image access domain

# Ali OSS storage
OSS_ACCESS_KEY_ID = ''
OSS_ACCESS_KEY_SECRET = ''
OSS_BUCKET = ''
OSS_END_POINT = 'oss-cn-shanghai.aliyuncs.com'
OSS_BASE_URI = ''

# Huawei OBS storage
OBS_ACCESS_KEY_ID = ''
OBS_ACCESS_KEY_SECRET = ''
OBS_BUCKET = ''
OBS_END_POINT = 'obs.cn-east-3.myhuaweicloud.com'
OBS_BASE_URI = ''

Sync the database tables

python manager.py migrate

Then just access the django admin backend.

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-cloudmedia-1.0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

django_cloudmedia-1.0.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file django-cloudmedia-1.0.2.tar.gz.

File metadata

  • Download URL: django-cloudmedia-1.0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for django-cloudmedia-1.0.2.tar.gz
Algorithm Hash digest
SHA256 02b4c39b4a77788ab457f89dd90be631a54636ee283ce259460f9b738dcb75fc
MD5 0c0b00461fadadd0b1e4e7979cc933d7
BLAKE2b-256 ae80e2c0b036dfdaee4fb2bc56727f7b73947b4880013467750217727de6e48b

See more details on using hashes here.

File details

Details for the file django_cloudmedia-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: django_cloudmedia-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for django_cloudmedia-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61a588aab9618a9a5f1c885855186a4fc048f7888b66575873f207706282068b
MD5 aa3e4a20f1a2ddec3ccc5411c582d6dd
BLAKE2b-256 2224173db3595fdd80867a48e31029b3500583d1aeb95c6327e3c513a6836b24

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