Skip to content

Commit 0a79232

Browse files
committed
Black lint 적용
1 parent ca767c8 commit 0a79232

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

pyconweb2022/pyconweb2022/settings.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,25 @@
134134
STATIC_URL = "static/"
135135

136136
# S3
137-
DEFAULT_FILE_STORAGE = DEFAULT_STORAGE_BACKEND = "pyconweb2022.customBoto3Storage.SecurityTokenWorkaroundS3Boto3Storage"
138-
STATICFILES_STORAGE = STATIC_STORAGE_BACKEND = "storages.backends.s3boto3.S3StaticStorage"
137+
DEFAULT_FILE_STORAGE = DEFAULT_STORAGE_BACKEND = (
138+
"pyconweb2022.customBoto3Storage.SecurityTokenWorkaroundS3Boto3Storage"
139+
)
140+
STATICFILES_STORAGE = STATIC_STORAGE_BACKEND = (
141+
"storages.backends.s3boto3.S3StaticStorage"
142+
)
139143

140144
AWS_S3_SESSION_PROFILE = "pycon"
141145
AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STATIC_S3_BUCKET")
142146

143147
STORAGES = {
144-
"default": {"BACKEND": DEFAULT_STORAGE_BACKEND, "OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME}},
145-
"staticfiles": {"BACKEND": STATIC_STORAGE_BACKEND, "OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME}},
148+
"default": {
149+
"BACKEND": DEFAULT_STORAGE_BACKEND,
150+
"OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME},
151+
},
152+
"staticfiles": {
153+
"BACKEND": STATIC_STORAGE_BACKEND,
154+
"OPTIONS": {"bucket_name": AWS_STORAGE_BUCKET_NAME},
155+
},
146156
}
147157

148158
# Default primary key field type

0 commit comments

Comments
 (0)