File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 87
87
aws_s3_domain = AWS_S3_CUSTOM_DOMAIN or f"{ AWS_STORAGE_BUCKET_NAME } .s3.amazonaws.com"
88
88
# STATIC
89
89
# ------------------------
90
- STATICFILES_STORAGE = "course_api.utils.storages.StaticRootS3Boto3Storage "
90
+ STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage "
91
91
COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"
92
92
STATIC_URL = f"https://{ aws_s3_domain } /static/"
93
93
# MEDIA
204
204
205
205
# Your stuff...
206
206
# ------------------------------------------------------------------------------
207
+ MIDDLEWARE += ["whitenoise.middleware.WhiteNoiseMiddleware" ]
Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ sentry-sdk==1.5.4 # https://github.com/getsentry/sentry-python
11
11
# ------------------------------------------------------------------------------
12
12
django-storages[boto3]==1.12.3 # https://github.com/jschneier/django-storages
13
13
django-anymail[sendgrid]==8.5 # https://github.com/anymail/django-anymail
14
+
15
+ # Whitenoise
16
+ whitenoise==6.0.0
You can’t perform that action at this time.
0 commit comments