【发布时间】:2013-12-02 09:17:17
【问题描述】:
我正在使用带有 boto 的 django-storages 在 amazon s3 存储桶中上传和提供媒体文件。当我尝试从开发服务器执行此操作时,一切正常。
但是当我尝试使用 mod_wsgi 在公共服务器上上传文件时,我得到了这个错误:
TypeError: set_contents_from_file() got an unexpected keyword argument 'rewind'
我检查了Key.set_contents_from_file(),它有一个参数rewind。有什么问题?
我正在使用 boto 2.18.0 和 django-storages 1.1.5。
当我尝试将 boto 升级到最新的 2.19.0 并将 django-storages 升级到最新的 1.1.8 时,我在使用 mod_wsgi 的服务器上遇到了另一个错误:
ImproperlyConfigured: The installed Boto library must be 2.4 or higher.
See https://github.com/boto/boto
哪些正确的版本可以很好地相互配合?或者这些错误的原因是什么?
【问题讨论】:
标签: django amazon-web-services amazon-s3 mod-wsgi boto