Skip to content

Commit 1f9ca28

Browse files
committed
reenabling s3 config
1 parent 7e99a40 commit 1f9ca28

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

museum_of_dreams_project/settings/aws.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
ALLOWED_HOSTS = [
1313
"museumofdreamworlds.eu-west-2.elasticbeanstalk.com",
14-
"3.11.242.245",
1514
"museumofdreamworlds.org",
1615
]
1716

@@ -29,10 +28,10 @@
2928
AWS_QUERYSTRING_AUTH = False # needed by grappelli to work with s3
3029

3130

32-
# DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
33-
# STATICFILES_STORAGE = "storages.backends.s3.S3Storage"
31+
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
32+
STATICFILES_STORAGE = "storages.backends.s3.S3Storage"
3433

35-
# AWS_ACCESS_KEY_ID = os.environ["AWS_ACCESS_KEY_ID"]
36-
# AWS_SECRET_ACCESS_KEY = os.environ["AWS_SECRET_ACCESS_KEY"]
37-
# AWS_STORAGE_BUCKET_NAME = "modprodbucket"
38-
# AWS_S3_REGION_NAME = "eu-west-2"
34+
AWS_ACCESS_KEY_ID = os.environ["AWS_ACCESS_KEY_ID"]
35+
AWS_SECRET_ACCESS_KEY = os.environ["AWS_SECRET_ACCESS_KEY"]
36+
AWS_STORAGE_BUCKET_NAME = "modprodbucket"
37+
AWS_S3_REGION_NAME = "eu-west-2"

museum_of_dreams_project/settings/staging.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
ALLOWED_HOSTS = [
77
"museumofdreams.eu-west-2.elasticbeanstalk.com",
8-
"18.171.110.126",
98
"staging.museumofdreamworlds.org",
109
]
1110
GRAPPELLI_ADMIN_TITLE = "Museum of Dreams"

0 commit comments

Comments
 (0)