[Fixed]-Django Compressor does not minify files

2👍

The problem was the memchached, disabling it, Django showed problems of permissions and to minify the css I had to select a filter like compressor.filters.cssmin.CSSMinFilter

👤Appost

43👍

Django compressor will not run on the django server even with DEBUG = False. It also by default only will merge all your css files into one. To do other things like minify you can apply a filter. Here is what I did in my settings.py

COMPRESS_ENABLED = True
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter',  'compressor.filters.cssmin.CSSMinFilter']

I think this will be helpful for others. Cheers!

👤radtek

Leave a comment