Last active
December 27, 2019 17:35
-
-
Save marteinn/e4ab42297b1d9a78c164 to your computer and use it in GitHub Desktop.
How to use https with S3 + django-storages + boto, with a bucket that contains a dot. (Add this in your settings.py)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWS_ACCESS_KEY_ID = "YOUR_KEY_ID" | |
| AWS_SECRET_ACCESS_KEY = "YOUR_ACCESS_KEY" | |
| AWS_STORAGE_BUCKET_NAME = "BUCKET-NAME" | |
| AWS_QUERYSTRING_AUTH = False | |
| AWS_S3_SECURE_URLS = True | |
| from boto.s3.connection import OrdinaryCallingFormat, S3Connection | |
| AWS_S3_CALLING_FORMAT = OrdinaryCallingFormat() | |
| S3Connection.DefaultHost = "s3-eu-west-1.amazonaws.com" # Must match your specific region |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@abirafdirp The
S3Connectioncomes from the package boto. Will clarify in the gist description!