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:
parent
ca74f0a8c9
commit
58d8484e0f
@ -135,9 +135,14 @@ COMPRESS_PRECOMPILERS = (
|
||||
('text/scss', 'horizon.utils.scss_filter.HorizonScssFilter'),
|
||||
)
|
||||
|
||||
COMPRESS_CSS_FILTERS = (
|
||||
COMPRESS_FILTERS = {
|
||||
'css': (
|
||||
'compressor.filters.css_default.CssAbsoluteFilter',
|
||||
)
|
||||
),
|
||||
'js': (
|
||||
'compressor.filters.jsmin.rJSMinFilter',
|
||||
)
|
||||
}
|
||||
|
||||
COMPRESS_ENABLED = True
|
||||
COMPRESS_OUTPUT_DIR = 'dashboard'
|
||||
|
Loading…
Reference in New Issue
Block a user