jezdez/django_compressor — Issue #143: COMPRESS_PRECOMPILERS aren't working when COMPRESS_ENABLED = False
Author: epicserve
Created: 2011-10-25 22:26:33+00:00
State: open

I'm trying to use `COMPRESS_PRECOMPILERS` but for some reason they aren't working when `COMPRESS_ENABLED = False`. Maybe I missed something in the [docs](http://django_compressor.readthedocs.org/en/latest/settings/#compress-precompilers), but I thought the precompiler would still convert scss or sass files to css when `COMPRESS_ENABLED = False`. There are no errors and I have `DEBUG = True`. Django_compressor seems to simply fail silently by ignoring everything inside `{% compress css %}...{% endcompress %}`. If `COMPRESS_PRECOMPILERS` aren't designed to work when `COMPRESS_ENABLED = False`, it might be helpful to add a "note" or "waring" in the [docs](http://django_compressor.readthedocs.org/en/latest/settings/#compress-precompilers) that lets people know that it's intended to work this way.

I have the following installed:

```
Django==1.3.1
django-compressor==1.1
```
My django_compressor settings:

```
COMPRESS_ENABLED = True
COMPRESS_OUTPUT_DIR = 'cache'
COMPRESS_ROOT = STATICFILES_DIRS[0]
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter']
COMPRESS_PRECOMPILERS = (
('text/x-sass', 'sass {infile} {outfile}'),
('text/x-scss', 'sass --scss {infile} {outfile}'),
)
```