Skip to content

Commit 178405c

Browse files
Add AWS_REGION env variable
1 parent 677bcbe commit 178405c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

municipal_finance/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@
463463
AWS_S3_ENDPOINT_URL = env.str("AWS_S3_ENDPOINT_URL", None)
464464
AWS_DEFAULT_ACL = "public-read"
465465
AWS_BUCKET_ACL = "public-read"
466-
S3_URL_PREFIX = env.str("S3_URL_PREFIX", None)
466+
AWS_REGION = env.str("AWS_REGION", "eu-west-1")
467467
UPDATE_BULK_DOWNLOADS = env.str("UPDATE_BULK_DOWNLOADS", False)
468468
BULK_DOWNLOAD_DIR = env.str("BULK_DOWNLOAD_DIR", "")
469469

municipal_finance/storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from storages.backends.s3boto3 import S3Boto3Storage
2+
from municipal_finance import settings
23

34

45
class MediaStorage(S3Boto3Storage):
56
location = "media"
67
file_overwrite = False
7-
region_name = "eu-west-1"
8+
region_name = settings.AWS_REGION

0 commit comments

Comments
 (0)