Error uploading to a non-US Standard AWS S3 Bucket in Django application; US Standard bucket works perfectly

后端 未结 3 474
天命终不由人
天命终不由人 2021-01-15 14:48

I set up an S3 bucket in a non-US region (Singapore). When I try to upload images to it, I get a 301 (Permanently moved) error from S3. Res

3条回答
  •  北海茫月
    2021-01-15 15:17

    AWS_AUTO_CREATE_BUCKET = True
    AWS_S3_HOST = 's3-eu-west-1.amazonaws.com'
    

    This works also for django-storages. Thanks @gmcc051

提交回复
热议问题