Skip to main content

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.

Metadata

Release files for django-cloudmedia 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cloudmedia 1.0.2
File Size Uploaded Provenance Actions
django-cloudmedia-1.0.2.tar.gz 9.3 kB Without provenance Details for django-cloudmedia-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-cloudmedia 1.0.2
File Interpreter ABI Platform Actions
django_cloudmedia-1.0.2-py3-none-any.whl Python 3 none any Details for django_cloudmedia-1.0.2-py3-none-any.whl

Total release size: 20.6 kB

Release files / django-cloudmedia-1.0.2.tar.gz

Download URL django-cloudmedia-1.0.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
02b4c39b4a77788ab457f89dd90be631a54636ee283ce259460f9b738dcb75fc
BLAKE2b-256 checksum
How to use checksums
ae80e2c0b036dfdaee4fb2bc56727f7b73947b4880013467750217727de6e48b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_cloudmedia-1.0.2-py3-none-any.whl

Download URL django_cloudmedia-1.0.2-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61a588aab9618a9a5f1c885855186a4fc048f7888b66575873f207706282068b
BLAKE2b-256 checksum
How to use checksums
2224173db3595fdd80867a48e31029b3500583d1aeb95c6327e3c513a6836b24
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for django-cloudmedia 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page