how to refresh the page header after edit horizon

asked 2016-11-17 02:24:52 -0500

genie gravatar image

i added extra link in the _header.html and settings.py, after restart apache2 service, still no change

/usr/share/openstack-dashboard/openstack_dashboard


/usr/share/openstack-dashboard/openstack_dashboard/templates/_header.html

<li><a href="{% url 'horizon:settings:user:index' %}">{% trans "Settings" %}</a></li>


{% if HORIZON_CONFIG.systemstatus_url %}
      <li><a href="{{ HORIZON_CONFIG.systemstatus_url }}" target="_new">{% trans "System Status" %}</a></li>
      {% endif %}
      {% if HORIZON_CONFIG.notification_url %}
      <li><a href="{{ HORIZON_CONFIG.notification_url }}" target="_new">{% trans "Notification" %}</a></li>
      {% endif %}
      {% if HORIZON_CONFIG.help_url %}
        <li><a href="{{ HORIZON_CONFIG.help_url }}" target="_new">{% trans "Help" %}</a></li>


/usr/share/openstack-dashboard/openstack_dashboard/settings.py

HORIZON_CONFIG = {
    'dashboards': ('project', 'admin', 'settings', 'router',),
    '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': "http://docs.openstack.org",
    'systemstatus_url': "http://docs.openstack.org",
    'notification_url': "http://docs.openstack.org",
    'exceptions': {'recoverable': exceptions.RECOVERABLE,
                   'not_found': exceptions.NOT_FOUND,
                   'unauthorized': exceptions.UNAUTHORIZED},
}
edit retag flag offensive close merge delete

Comments

When I changed the logo for horizon it took about a day before it actually used the new logo. I don't know if there's a way to make the change appear instantly or not.

samb gravatar imagesamb ( 2016-11-17 08:08:46 -0500 )edit

i have waited update of horizon for a month, still no change in adding new item in dropdownlist, how to reload django ? i find no command to reload django in openstack document, but only reload apache2

genie gravatar imagegenie ( 2016-11-28 21:14:01 -0500 )edit