diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2022-08-01 19:02:30 +0900 |
---|---|---|
committer | Takashi Kajinami <tkajinam@redhat.com> | 2022-08-01 20:16:29 +0900 |
commit | 58d8484e0f7133f61d3d8b18725a6c400f69107a (patch) | |
tree | 60afd37169accfb2f2a26378f653aa1e6a2ffe14 | |
parent | ca74f0a8c9c02654641b125b53ae8eb0c09485cf (diff) | |
download | horizon-58d8484e0f7133f61d3d8b18725a6c400f69107a.tar.gz |
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
-rw-r--r-- | openstack_dashboard/settings.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index b192efadf..23d52a50b 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -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' |