File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
pyconweb2022/pyconweb2022 Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 134134STATIC_URL = "static/"
135135
136136# S3
137- DEFAULT_FILE_STORAGE = (
138- "pyconweb2022.customBoto3Storage.SecurityTokenWorkaroundS3Boto3Storage"
139- )
140- STATICFILES_STORAGE = "storages.backends.s3boto3.S3StaticStorage"
137+ DEFAULT_FILE_STORAGE = DEFAULT_STORAGE_BACKEND = "pyconweb2022.customBoto3Storage.SecurityTokenWorkaroundS3Boto3Storage"
138+ STATICFILES_STORAGE = STATIC_STORAGE_BACKEND = "storages.backends.s3boto3.S3StaticStorage"
139+
141140AWS_S3_SESSION_PROFILE = "pycon"
142141AWS_STORAGE_BUCKET_NAME = os .getenv ("AWS_STATIC_S3_BUCKET" )
143142
143+ 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 }},
146+ }
147+
144148# Default primary key field type
145149# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
146150
You can’t perform that action at this time.
0 commit comments