Skip to content

Commit

Permalink
Updated bucket settings
Browse files Browse the repository at this point in the history
  • Loading branch information
onurmatik committed Jan 7, 2025
1 parent 05a9ecf commit a9c603e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oa/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from pathlib import Path
from django.utils.text import slugify
from dotenv import load_dotenv

load_dotenv()
Expand Down Expand Up @@ -177,7 +178,7 @@
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
AWS_S3_REGION_NAME = os.getenv("AWS_REGION_NAME")

AWS_STORAGE_BUCKET_NAME = f"{SITE_HOST}-{BRANCH_NAME}".lower()
AWS_STORAGE_BUCKET_NAME = slugify(f"{SITE_NAME}-static-{BRANCH_NAME}")

STATIC_URL = f'https://{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com/static/'
MEDIA_URL = f'https://{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com/media/'
Expand All @@ -188,7 +189,6 @@


ALLOWED_HOSTS = [
'localhost',
SITE_HOST,
]

Expand Down

0 comments on commit a9c603e

Please sign in to comment.