def load_router(full_router_path):
 path_bits = full_router_path.split(u'.')
 if (len(path_bits) < 2):
  raise ImproperlyConfigured((u"The provided router '%s' is not a complete Python path to a BaseRouter subclass." % full_router_path))
 return import_class(full_router_path)

def load_router ( full_router_path ) : path_bits = full_router_path . split ( u'.' ) if ( len ( path_bits ) < 2 ) : raise ImproperlyConfigured ( ( u"The provided router '%s' is not a complete Python path to a BaseRouter subclass." % full_router_path ) ) return import_class ( full_router_path )
loads a router for choosing which connection to use .