Closed agajdosi closed 10 months ago
The fix was reverted because it produced a regression. As the settings
module may be called very early in the app start, it should not call staticfiles immediately, but rather lazily.
In the patch above, I suggested another approach so as accessing staticfiles_storage is delayed to after the initial import phase is over.
I am using
django-tinymce
withdjango-storages
set to S3 compatible DigitalOcean Spaces. All works well, scripts are collected and uploaded into S3 storage. However for some reason the{{ form.media }}
is not rendering the URL fortinymce.min.js
with missing space/bucket name in the URL:I am not sure if the problem is on
django-tinymce
side, but as theinit_tinymce.js
loaded fine, I believe it could be - is it possible that resolution of URL for tinymce.min.js is wrong?This issue seems a little bit similar to #401. Fix proposed in this issue fixes the problem for me, in app's settings.py I needed to set: