Skip to content

Commit

Permalink
Merge pull request #24 from ksiuwr/bartacc/fix_staticfiles_error_gcp
Browse files Browse the repository at this point in the history
Fix django templates error when getting static files from Google Cloud Storage bucket
  • Loading branch information
bartacc authored Nov 24, 2024
2 parents 49a6242 + 15060e0 commit 58a76e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/server/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
# Upload generated static files to Google Cloud Storage bucket
bucket_name = os.environ.get("GCS_BUCKET_NAME", "")
STATIC_URL = "https://storage.googleapis.com/" + bucket_name + "/"
GS_DEFAULT_ACL = "publicRead"
STORAGES = {
"default": {
"BACKEND": "storages.backends.gcloud.GoogleCloudStorage",
Expand Down

0 comments on commit 58a76e1

Please sign in to comment.