Skip to content

Commit afb3ee8

Browse files
authored
Merge pull request #1080 from thecourseforum/dev
revert env changes
2 parents f6ee5ca + ea20415 commit afb3ee8

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

tcf_core/settings/base.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@
5656
]
5757

5858
# Dev does not use S3 buckets
59-
if env.str("ENVIRONMENT") == "dev":
60-
STATIC_URL = '/static/'
61-
STATIC_ROOT = os.path.join(BASE_DIR, "static")
62-
else:
63-
AWS_ACCESS_KEY_ID = env.str("AWS_ACCESS_KEY_ID")
64-
AWS_SECRET_ACCESS_KEY = env.str("AWS_SECRET_ACCESS_KEY")
65-
AWS_STORAGE_BUCKET_NAME = env.str("AWS_STORAGE_BUCKET_NAME")
66-
AWS_S3_REGION_NAME = env.str("AWS_S3_REGION_NAME", default="us-east-1")
67-
AWS_S3_CUSTOM_DOMAIN = f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com"
68-
AWS_DEFAULT_ACL = None
69-
AWS_S3_OBJECT_PARAMETERS = {"CacheControl": "max-age=86400"}
70-
71-
STORAGES = {
72-
"default": {
73-
"BACKEND": "storages.backends.s3.S3Storage",
74-
"OPTIONS": {},
75-
},
76-
"staticfiles": {
77-
"BACKEND": "storages.backends.s3.S3Storage",
78-
},
79-
}
59+
# if env.str("ENVIRONMENT") == "dev":
60+
# STATIC_URL = '/static/'
61+
# STATIC_ROOT = os.path.join(BASE_DIR, "static")
62+
# else:
63+
AWS_ACCESS_KEY_ID = env.str("AWS_ACCESS_KEY_ID")
64+
AWS_SECRET_ACCESS_KEY = env.str("AWS_SECRET_ACCESS_KEY")
65+
AWS_STORAGE_BUCKET_NAME = env.str("AWS_STORAGE_BUCKET_NAME")
66+
AWS_S3_REGION_NAME = env.str("AWS_S3_REGION_NAME", default="us-east-1")
67+
AWS_S3_CUSTOM_DOMAIN = f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com"
68+
AWS_DEFAULT_ACL = None
69+
AWS_S3_OBJECT_PARAMETERS = {"CacheControl": "max-age=86400"}
70+
71+
STORAGES = {
72+
"default": {
73+
"BACKEND": "storages.backends.s3.S3Storage",
74+
"OPTIONS": {},
75+
},
76+
"staticfiles": {
77+
"BACKEND": "storages.backends.s3.S3Storage",
78+
},
79+
}
8080

8181
# COLLECTFAST_THREADS = 20
8282
# COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"

0 commit comments

Comments
 (0)