File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
pyconweb2022/pyconweb2022 Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 134134STATIC_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
140144AWS_S3_SESSION_PROFILE = "pycon"
141145AWS_STORAGE_BUCKET_NAME = os .getenv ("AWS_STATIC_S3_BUCKET" )
142146
143147STORAGES = {
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
You can’t perform that action at this time.
0 commit comments