We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677bcbe commit 178405cCopy full SHA for 178405c
municipal_finance/settings.py
@@ -463,7 +463,7 @@
463
AWS_S3_ENDPOINT_URL = env.str("AWS_S3_ENDPOINT_URL", None)
464
AWS_DEFAULT_ACL = "public-read"
465
AWS_BUCKET_ACL = "public-read"
466
-S3_URL_PREFIX = env.str("S3_URL_PREFIX", None)
+AWS_REGION = env.str("AWS_REGION", "eu-west-1")
467
UPDATE_BULK_DOWNLOADS = env.str("UPDATE_BULK_DOWNLOADS", False)
468
BULK_DOWNLOAD_DIR = env.str("BULK_DOWNLOAD_DIR", "")
469
municipal_finance/storage.py
@@ -1,7 +1,8 @@
1
from storages.backends.s3boto3 import S3Boto3Storage
2
+from municipal_finance import settings
3
4
5
class MediaStorage(S3Boto3Storage):
6
location = "media"
7
file_overwrite = False
- region_name = "eu-west-1"
8
+ region_name = settings.AWS_REGION
0 commit comments