def reload_urlconf(urlconf=None):
    clear_url_caches()
    if (urlconf is None):
        urlconf = settings.ROOT_URLCONF
    if (urlconf in sys.modules):
        reload(sys.modules[urlconf])
    else:
        import_module(urlconf)
def reload_urlconf(urlconf=None):
    clear_url_caches()
    if (urlconf is None):
        urlconf = settings.ROOT_URLCONF
    if (urlconf in sys.modules):
        reload(sys.modules[urlconf])
    else:
        import_module(urlconf)