File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -409,6 +409,8 @@ def MIDDLEWARE(self):
409
409
RTD_BUILD_COMMANDS_STORAGE = (
410
410
"readthedocs.builds.storage.BuildMediaFileSystemStorage"
411
411
)
412
+ # This is for serving static files on proxito, not Django static files
413
+ # https://github.com/readthedocs/readthedocs.org/pull/9237
412
414
RTD_STATICFILES_STORAGE = "readthedocs.builds.storage.StaticFilesStorage"
413
415
414
416
@property
@@ -1058,7 +1060,7 @@ def STORAGES(self):
1058
1060
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html
1059
1061
return {
1060
1062
"staticfiles" : {
1061
- "BACKEND" : self . RTD_STATICFILES_STORAGE ,
1063
+ "BACKEND" : "readthedocs.storage.s3_storage.S3StaticStorage"
1062
1064
},
1063
1065
}
1064
1066
Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ def DATABASES(self): # noqa
177
177
# Storage backend for build languages
178
178
RTD_BUILD_TOOLS_STORAGE = "readthedocs.storage.s3_storage.S3BuildToolsStorage"
179
179
# Storage for static files (those collected with `collectstatic`)
180
- STATICFILES_STORAGE = "readthedocs.storage.s3_storage.S3StaticStorage"
181
180
RTD_STATICFILES_STORAGE = "readthedocs.storage.s3_storage.NoManifestS3StaticStorage"
182
181
183
182
AWS_ACCESS_KEY_ID = os .environ .get ("RTD_AWS_ACCESS_KEY_ID" , "admin" )
Original file line number Diff line number Diff line change @@ -130,5 +130,18 @@ def LOGGING(self): # noqa - avoid pep8 N802
130
130
logging ["disable_existing_loggers" ] = False
131
131
return logging
132
132
133
+ @property
134
+ def STORAGES (self ):
135
+ # Attempt to fix tests using the default storage backends
136
+ return {
137
+ "default" : {
138
+ "BACKEND" : "django.core.files.storage.FileSystemStorage" ,
139
+ },
140
+ "staticfiles" : {
141
+ "BACKEND" : "django.contrib.staticfiles.storage.StaticFilesStorage" ,
142
+ },
143
+ }
144
+
145
+
133
146
134
147
CommunityTestSettings .load_settings (__name__ )
You can’t perform that action at this time.
0 commit comments