Skip to content

Commit 1734615

Browse files
committed
adding s3 url
1 parent 193bf0e commit 1734615

File tree

1 file changed

+4
-0
lines changed
  • museum_of_dreams_project/settings

1 file changed

+4
-0
lines changed

museum_of_dreams_project/settings/aws.py

+4
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@
3535
AWS_SECRET_ACCESS_KEY = os.environ["AWS_SECRET_ACCESS_KEY"]
3636
AWS_STORAGE_BUCKET_NAME = "modprodbucket"
3737
AWS_S3_REGION_NAME = "eu-west-2"
38+
AWS_S3_CUSTOM_DOMAIN = (
39+
f"{AWS_STORAGE_BUCKET_NAME}.s3.{AWS_S3_REGION_NAME}.amazonaws.com"
40+
)
41+
STATIC_URL = "https://%s/" % AWS_S3_CUSTOM_DOMAIN

0 commit comments

Comments
 (0)