def reload_django_url_config():
 urlconf = settings.ROOT_URLCONF
 if (urlconf and (urlconf in sys.modules)):
  reload(sys.modules[urlconf])
 reloaded = import_module(urlconf)
 reloaded_urls = reloaded.urlpatterns
 set_urlconf(tuple(reloaded_urls))

def reload_django_url_config ( ) : urlconf = settings . ROOT_URLCONF if ( urlconf and ( urlconf in sys . modules ) ) : reload ( sys . modules [ urlconf ] ) reloaded = import_module ( urlconf ) reloaded_urls = reloaded . urlpatterns set_urlconf ( tuple ( reloaded_urls ) )
reloads djangos url config .