File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
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 = "whitenoise.storage.CompressedManifestStaticFilesStorage "
91
- # COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"
92
- # STATIC_URL = f"https://{aws_s3_domain}/static/"
90
+ STATICFILES_STORAGE = "course_api.utils.storages.StaticRootS3Boto3Storage "
91
+ COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"
92
+ STATIC_URL = f"https://{ aws_s3_domain } /static/"
93
93
# MEDIA
94
94
# ------------------------------------------------------------------------------
95
95
DEFAULT_FILE_STORAGE = "course_api.utils.storages.MediaRootS3Boto3Storage"
96
96
MEDIA_URL = f"https://{ aws_s3_domain } /media/"
97
-
97
+
98
98
# EMAIL
99
99
# ------------------------------------------------------------------------------
100
100
# https://docs.djangoproject.com/en/dev/ref/settings/#default-from-email
139
139
# Collectfast
140
140
# ------------------------------------------------------------------------------
141
141
# https://github.com/antonagestam/collectfast#installation
142
- # INSTALLED_APPS = ["collectfast"] + INSTALLED_APPS # noqa F405
142
+ INSTALLED_APPS = ["collectfast" ] + INSTALLED_APPS # noqa F405
143
143
144
144
# LOGGING
145
145
# ------------------------------------------------------------------------------
204
204
205
205
# Your stuff...
206
206
# ------------------------------------------------------------------------------
207
- MIDDLEWARE += ["whitenoise.middleware.WhiteNoiseMiddleware" ]
Original file line number Diff line number Diff line change @@ -11,6 +11,3 @@ 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