django-storages
django-storages copied to clipboard
S3ManifestStaticStorage does not work with filenames with special characters
If you have a css file like home+profile.css
and you imported this in your main styles.css like @import url("home%2Bprofile.css")
, when using S3ManifestStaticStorage
and running collectstatic, the storage classes creates new files with hash in the filename and updates url
in the new css files to use the filenames with the hash. But it unqoutes the url so you end up with url("home+profile.css")
in the css files uploaded to s3. This results to 404 when the browser tries to load home+profile.css
because s3 urlencodes the object keys.