1

ここに私のレポへのリンクがあります: https://github.com/dogukantufekci/cenkerbulut

私のプロジェクトはローカルで正常に動作します。

私の IAM ポリシーは次のとおりです。

{
    "Version": "2012-10-17",
    "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:*",
      "Resource": "*"
    }
  ]
}

Heroku と S3 で Grappelli Admin 経由で Django-Filebrowser を使用しようとすると、500 エラーが発生します。

 File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response 
response = wrapped_callback(request, *callback_args, **callback_kwargs)

 File "/app/.heroku/python/lib/python2.7/site-packages/filebrowser/decorators.py", line 37, in decorator
if get_path('', site=site) is None:

 File "/app/.heroku/python/lib/python2.7/site-packages/filebrowser/decorators.py", line 20, in get_path
if path.startswith('.') or os.path.isabs(path) or not site.storage.isdir(os.path.join(site.directory, path)):

 File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/functional.py", line 214, in inner
return func(self._wrapped, *args)

AttributeError: 'S3BotoStorage' object has no attribute 'isdir'

WSGIRequest
path:/admin/filebrowser/browse/
4

0 に答える 0