以下是我的回购的链接: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/