ImportError: cannot import name 'BlobService' when using Azure Backend

前端 未结 5 1719
陌清茗
陌清茗 2020-12-10 07:02

I followed these instructions to set up Azure as my backend service: http://django-storages.readthedocs.io/en/latest/backends/azure.html

Also added additional packag

5条回答
  •  盖世英雄少女心
    2020-12-10 07:22

    Strange... In Azure official documentation, it says you need to from azure.storage.blob import BlockBlobService, but what you did is from azure.storage.blob.blobservice import BlobService and from azure.storage import BlobService.

    So why don't you just follow the official documentation?

提交回复
热议问题