djangocloudmedia 1.0.2
Cloud media manager for django
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.