'Clears out the URL caches, and reloads the root urls module.
It re-triggers the autodiscovery mechanism for Horizon.
Allows URLs to be re-calculated after registering new dashboards.
Useful only for testing and should never be used on a live site.'

def _reload_urls(self):

    urlresolvers.clear_url_caches()
    moves.reload_module(import_module(settings.ROOT_URLCONF))
    base.Horizon._urls()
