Change my local storage with qiniu cloud storage

I try to replace my local storage with qiniu cloud storage ,
step1:

pip install django-qiniu-storage

step2:add qiniu settings in devstack_docker.py
here is my settings in /edx/edx-platform/cms/envs/devstack_docker.py

below is the result

    class VideoImage(TimeStampedModel): 
    File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/edxval/models.py", line 313, in VideoImage

    image = CustomizableImageField()

    File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/edxval/models.py", line 221, in __init__

    storage=get_video_image_storage(),

    File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/edxval/utils.py", line 164, in get_video_image_storage

    )(**settings.VIDEO_IMAGE_SETTINGS.get('STORAGE_KWARGS', {}))

    File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/qiniustorage/backends.py", line 202, in __init__

    super(QiniuMediaStorage, self).__init__(*args, **kwargs)

    TypeError: __init__() got an unexpected keyword argument 'base_url'

does any one can telll me how to do with it?

@gao_yu, Open edX only supports S3 officially as the external object storage backend. While S3-compatible backends may work, Iā€™m not sure if they will work out of the box.

1 Like