Django-storages: How to configure s3 default region?

Created on 18 Mar 2016  路  2Comments  路  Source: jschneier/django-storages

I'm using China aws s3 service, it's a private region.
I can set a ~/.aws/config to:

[default]
region = cn-north-1

and aws cli can be used.

But how can I configure django-storages to connect this region?

Most helpful comment

I fix it in settings:

AWS_S3_HOST="s3.cn-north-1.amazonaws.com.cn"

All 2 comments

I tried to set settings AWS_LOCATION='cn-north-1'
But this setting seems add prefix to file path.

I fix it in settings:

AWS_S3_HOST="s3.cn-north-1.amazonaws.com.cn"
Was this page helpful?
0 / 5 - 0 ratings

Related issues

pratyushsharma picture pratyushsharma  路  6Comments

ryanpineo picture ryanpineo  路  5Comments

david-alejandro-reyes-milian picture david-alejandro-reyes-milian  路  8Comments

stebunovd picture stebunovd  路  3Comments

sheepeatingtaz picture sheepeatingtaz  路  7Comments