File tree 2 files changed +1
-18
lines changed
2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ def show_debug_toolbar(request):
155
155
# Storage backend for build languages
156
156
RTD_BUILD_TOOLS_STORAGE = 'readthedocs.storage.s3_storage.S3BuildToolsStorage'
157
157
# Storage for static files (those collected with `collectstatic`)
158
- STATICFILES_STORAGE = 'readthedocs.storage.s3_storage.S3StaticStorage '
158
+ STATICFILES_STORAGE = 'storages.backends.s3boto3.S3ManifestStaticStorage '
159
159
160
160
AWS_ACCESS_KEY_ID = 'admin'
161
161
AWS_SECRET_ACCESS_KEY = 'password'
Original file line number Diff line number Diff line change 19
19
from .mixins import OverrideHostnameMixin , S3PrivateBucketMixin
20
20
21
21
22
- class S3BuildMediaStorage (BuildMediaStorageMixin , OverrideHostnameMixin , S3Boto3Storage ):
23
-
24
- """An AWS S3 Storage backend for build artifacts."""
25
-
26
- bucket_name = getattr (settings , 'S3_MEDIA_STORAGE_BUCKET' , None )
27
- override_hostname = getattr (settings , 'S3_MEDIA_STORAGE_OVERRIDE_HOSTNAME' , None )
28
-
29
- def __init__ (self , * args , ** kwargs ):
30
- super ().__init__ (* args , ** kwargs )
31
-
32
- if not self .bucket_name :
33
- raise ImproperlyConfigured (
34
- 'AWS S3 not configured correctly. '
35
- 'Ensure S3_MEDIA_STORAGE_BUCKET is defined.' ,
36
- )
37
-
38
-
39
22
class S3BuildCommandsStorage (S3PrivateBucketMixin , S3Boto3Storage ):
40
23
41
24
"""An AWS S3 Storage backend for build commands."""
You can’t perform that action at this time.
0 commit comments