Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit ab2b512

Browse files
committed
added AWS_STATIC_LOCATION to settings
1 parent 443d7fa commit ab2b512

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

awscdk/awscdk/cloudfront.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ def __init__(
7272
cloudfront.Behavior(
7373
allowed_methods=cloudfront.CloudFrontAllowedMethods.ALL,
7474
path_pattern=path_pattern,
75-
forwarded_values={
76-
"query_string": True,
77-
},
75+
forwarded_values={"query_string": True},
7876
)
7977
for path_pattern in ["/static/*", "/media/*"]
8078
],

backend/backend/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
"CacheControl": "max-age=86400",
260260
}
261261
AWS_PRIVATE_MEDIA_LOCATION = "media/private"
262+
AWS_STATIC_LOCATION = "static"
262263
PRIVATE_FILE_STORAGE = "backend.storage_backends.PrivateMediaStorage"
263264

264265

0 commit comments

Comments
 (0)