Skip to content

Commit

Permalink
Black lint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Jan 12, 2025
1 parent ca767c8 commit 0a79232
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pyconweb2022/pyconweb2022/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,25 @@
STATIC_URL = "static/"

# S3
DEFAULT_FILE_STORAGE = DEFAULT_STORAGE_BACKEND = "pyconweb2022.customBoto3Storage.SecurityTokenWorkaroundS3Boto3Storage"
STATICFILES_STORAGE = STATIC_STORAGE_BACKEND = "storages.backends.s3boto3.S3StaticStorage"
DEFAULT_FILE_STORAGE = DEFAULT_STORAGE_BACKEND = (
"pyconweb2022.customBoto3Storage.SecurityTokenWorkaroundS3Boto3Storage"
)
STATICFILES_STORAGE = STATIC_STORAGE_BACKEND = (
"storages.backends.s3boto3.S3StaticStorage"
)

AWS_S3_SESSION_PROFILE = "pycon"
AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STATIC_S3_BUCKET")

STORAGES = {
"default": {"BACKEND": DEFAULT_STORAGE_BACKEND, "OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME}},
"staticfiles": {"BACKEND": STATIC_STORAGE_BACKEND, "OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME}},
"default": {
"BACKEND": DEFAULT_STORAGE_BACKEND,
"OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME},
},
"staticfiles": {
"BACKEND": STATIC_STORAGE_BACKEND,
"OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME},
},
}

# Default primary key field type
Expand Down

0 comments on commit 0a79232

Please sign in to comment.