Is it possible to use django_compressor/S3/gzip?

前端 未结 3 1040
遇见更好的自我
遇见更好的自我 2020-12-31 11:36

How is it possible to use django_compressor to send gziped files to Amazon S3?

I tried in several ways but it didn\'t work. Here is my last settings.py configuration

3条回答
  •  情话喂你
    2020-12-31 11:37

    django-storages S3 storage backend supports gzip. Add to settings.py:

    AWS_IS_GZIPPED = True
    

提交回复
热议问题