Replace deprecated COMPRESS_CSS_FILTERS

The COMPRESS_CSS_FILTERS option was deprecated in django-compressor
v2.4[1] and causes the following warning message.

```
DeprecationWarning: COMPRESS_CSS_FILTERS setting is deprecated and will
be removed in django-compressor 3.0. Use COMPRESS_FILTERS instead.
```

[1] https://django-compressor.readthedocs.io/en/2.4/changelog/#v2-4-2019-12-02

Change-Id: Ib87906faab507540ba57ee3a1a30c6fc4a92f835
This commit is contained in:
Takashi Kajinami 2022-08-01 19:02:30 +09:00
parent ca74f0a8c9
commit 58d8484e0f
1 changed files with 8 additions and 3 deletions

View File

@ -135,9 +135,14 @@ COMPRESS_PRECOMPILERS = (
('text/scss', 'horizon.utils.scss_filter.HorizonScssFilter'),
)
COMPRESS_CSS_FILTERS = (
'compressor.filters.css_default.CssAbsoluteFilter',
)
COMPRESS_FILTERS = {
'css': (
'compressor.filters.css_default.CssAbsoluteFilter',
),
'js': (
'compressor.filters.jsmin.rJSMinFilter',
)
}
COMPRESS_ENABLED = True
COMPRESS_OUTPUT_DIR = 'dashboard'