错误“无法加载Boto的S3绑定”。 [英] Error "Could not load Boto's S3 bindings."
本文介绍了错误“无法加载Boto的S3绑定”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遵循了 django-存储库,从本地文件存储过渡,并针对此例外:
I have followed the very terse guide provided for django-storages, transitioned from local file storage, and have come up against this exception:
无法加载Boto的S3绑定。 / p>
Could not load Boto's S3 bindings.
settings.py
settings.py
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_ACCESS_KEY_ID = "xxxxxx"
AWS_SECRET_ACCESS_KEY = "xxxxxxxxx"
AWS_STORAGE_BUCKET_NAME = "images"
models.py
models.py
class CameraImage(models.Model):
...
image = models.ImageField(upload_to='images')#get_image_path)
这个异常是什么意思?如何修复?
What does that exception mean? How do I fix it?
推荐答案
从查看源代码,您似乎需要拥有 python-boto 库。在您链接到的文档中也提到了这一点。
From looking at the source code, it appears you need to have the python-boto library installed. This is also mentioned in the documentation you link to.
这篇关于错误“无法加载Boto的S3绑定”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文