From 2560965eb02413c37ce3b55f6c10ceba5f17d389 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 16 Jan 2013 13:39:01 +0100 Subject: [PATCH] Extend offline-compression context When using offline compression, all context information needs to be available in order to generate matching compressor output. Change I84807f6ca0d9769d25b942c151c1a83501648a0a introduced references to HORIZON_CONFIG, so add it to the predefined list of context for offline compression as well. Change-Id: I44ee139626f0eac6fa34f9136926a1a626498039 --- openstack_dashboard/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index 790187c2ef..421b7dbd26 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -176,6 +176,11 @@ try: except ImportError: logging.warning("No local_settings file found.") +# Add HORIZON_CONFIG to the context information for offline compression +COMPRESS_OFFLINE_CONTEXT = { + 'STATIC_URL': STATIC_URL, + 'HORIZON_CONFIG': HORIZON_CONFIG +} # Deprecation for Essex/Folsom dashboard names; remove this code in H. _renames = (