模块未找到错误:没有名为'storages.backends.s3boto'的模块



所以,我已经安装了django存储和boto + boto3。它们符合我的要求.txt我确保在我的虚拟环境中安装它。要求显然是我的根源。为什么我仍然收到此错误?

要求.txt

beautifulsoup4==4.8.2
boto==2.49.0
boto3==1.14.16
botocore==1.17.16
dj-database-url==0.5.0
Django==2.2.3
django-bootstrap4==1.1.1
django-storages==1.9.1
djangorestframework==3.10.2
docutils==0.15.2
gunicorn==20.0.4
jmespath==0.10.0
Markdown==3.1.1
pbr==5.4.5
Pillow==7.0.0
psycopg2-binary==2.8.5
pygame==1.9.6
python-dateutil==2.8.1
pytz==2019.1
s3transfer==0.3.3
six==1.14.0
soupsieve==2.0
sqlparse==0.3.0
stevedore==1.32.0
urllib3==1.25.9
virtualenv==16.6.1
virtualenv-clone==0.5.4
virtualenvwrapper==4.8.4
whitenoise==5.1.0

settings.py

import six
import os
from boto.s3.connection import OrdinaryCallingFormat
from storages.backends.s3boto import S3BotoStorage

而不是from storages.backends.s3boto import S3BotoStorage你应该使用from storages.backends.s3boto3 import S3Boto3Storage

最新更新