alvaro562003
alvaro562003

Reputation: 698

python manage.py collectstatic : boto.exception.S3ResponseError: 400 Bad Request

Hello all,

I want to use a S3 bucket in Franckfurt or in London(eu-west-2).

I have an existing bucket in Oregon and create another in ireland. The django command "python manage.py collectstatic" work well. Collectstatic comes from Django==1.10.5 (January 4, 2017) running on "windows 10" python 2.7

But when executing "python manage.py collectstatic" on a London or Frankfurt S3 bucket, i got the error :

boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request.

refering to :

So i did the followings :

Any suggestion ?

Thank you

Upvotes: 1

Views: 938

Answers (1)

alvaro562003
alvaro562003

Reputation: 698

I create a file named .boto in the directy c:\users\myname or ~.boto

[Credentials]

aws_access_key_id = 'XXXXXXXXX'

aws_secret_access_key = 'XXXXXXX'

[s3]

host=s3.eu-west-2.amazonaws.com

aws_access_key_id = 'XXXXXXXXX'

aws_secret_access_key = 'XXXXXXXXX'

Upvotes: 1

Related Questions