5657428cab
Horizon has a global override mechanism available to perform customizations. This change adds customization_module key to HORIZON_CONFIG dictionary in local_settings.py. The corresponding template file is also modified to configure the parameter. Spec tests are added to test the configuration. Change-Id: Id204b60b2676f49713fb6ce7eede6200221f7163 Closes-Bug: #1722653
22 lines
741 B
Plaintext
22 lines
741 B
Plaintext
# Custom local_settings.py
|
|
DEBUG = <%= @django_debug %>
|
|
|
|
HORIZON_CONFIG = {
|
|
'dashboards': ('project', 'admin', 'settings',),
|
|
'default_dashboard': 'project',
|
|
'user_home': 'openstack_dashboard.views.get_user_home',
|
|
'ajax_queue_limit': 10,
|
|
'auto_fade_alerts': {
|
|
'delay': 3000,
|
|
'fade_duration': 1500,
|
|
'types': ['alert-success', 'alert-info']
|
|
},
|
|
'help_url': "<%= @help_url %>",
|
|
'exceptions': {'recoverable': exceptions.RECOVERABLE,
|
|
'not_found': exceptions.NOT_FOUND,
|
|
'unauthorized': exceptions.UNAUTHORIZED},
|
|
<% if @customization_module and ! (@customization_module.empty?) -%>
|
|
'customization_module': '<%= @customization_module -%>',
|
|
<% end -%>
|
|
}
|