We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d0f7f8 + 296631e commit 246302aCopy full SHA for 246302a
src/core/settings.py
@@ -97,7 +97,7 @@
97
AWS_S3_FILE_OVERWRITE = True
98
STATIC_ROOT = os.path.join(BASE_DIR, 'collectstatic')
99
# s3 static settings
100
- STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
+ STATICFILES_STORAGE = 'core.storage_backends.StaticStorage'
101
STATIC_URL = f'https://{AWS_S3_CUSTOM_DOMAIN}/static/'
102
DEFAULT_FILE_STORAGE = 'core.storage_backends.MediaStorage'
103
MEDIA_URL = f'https://{AWS_S3_CUSTOM_DOMAIN}/media/'
src/core/storage_backends.py
@@ -2,4 +2,8 @@
2
3
class MediaStorage(S3Boto3Storage):
4
location = 'media'
5
- file_overwrite = False
+ file_overwrite = True
6
+
7
+class StaticStorage(S3Boto3Storage):
8
+ location = 'static'
9
0 commit comments