[Answered ]-Django-Compressor throws UncompressableFileError with django-storages using amazonaws and heroku

2๐Ÿ‘

โœ…

I spent the whole night trying to solve this and I made a little change in this code:

isn't accessible via COMPRESS_URL ('//xxxxx.s3.amazonaws.com/static/')

I thought it can add http or https and I have

AWS_S3_SECURE_URLS = True

So just for test I added hardcoded

https:

like this

STATIC_URL = "https://%s/%s/" % (AWS_S3_CUSTOM_DOMAIN, STATICFILES_LOCATION)

and it started working, it is great. But can anyone explain why it is not recognizing or adding http or https to it?

๐Ÿ‘คRadek

Leave a comment