Use django-storages' manifest files class
@@ -12,7 +12,7 @@ in our Docker Development environment.
from django.conf import settings
from django.contrib.staticfiles.storage import ManifestFilesMixin
from django.core.exceptions import ImproperlyConfigured
-from storages.backends.s3boto3 import S3Boto3Storage
+from storages.backends.s3boto3 import S3Boto3Storage, S3ManifestStaticStorage
from readthedocs.builds.storage import BuildMediaStorageMixin
@@ -52,7 +52,7 @@ class S3BuildCommandsStorage(S3PrivateBucketMixin, S3Boto3Storage):
)
-class S3StaticStorage(OverrideHostnameMixin, ManifestFilesMixin, S3Boto3Storage):
+class S3StaticStorage(OverrideHostnameMixin, S3ManifestStaticStorage, S3Boto3Storage):
"""
An AWS S3 Storage backend for static media.
