From 0fe556e389f4b7dcf68a5bbe1421c848cd78e6e1 Mon Sep 17 00:00:00 2001 From: Michael Quiniola Date: Thu, 1 Oct 2020 09:42:53 -0700 Subject: [PATCH] Update template to enable offline-compression This update fixes slow page render times in the OpenStack Dashboard charm. By default the charm is not set to enable the COMPRESS_OFFLINE configuration option. Uncommenting the line that contains this option resolves this issue. Closes-Bug: 1867938 Change-Id: I6edac134d40fe8196795c245e8589be85f49cc9c --- templates/ocata/local_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ocata/local_settings.py b/templates/ocata/local_settings.py index 1477161b..50565a20 100644 --- a/templates/ocata/local_settings.py +++ b/templates/ocata/local_settings.py @@ -953,7 +953,7 @@ LOGIN_REDIRECT_URL='{{ webroot }}' ALLOWED_HOSTS = '*' # Compress all assets offline as part of packaging installation -#COMPRESS_OFFLINE = True +COMPRESS_OFFLINE = True # DISALLOW_IFRAME_EMBED can be used to prevent Horizon from being embedded # within an iframe. Legacy browsers are still vulnerable to a Cross-Frame