def load_backends(backends, force_load=False):
 global BACKENDSCACHE
 if force_load:
  BACKENDSCACHE = {}
 if (not BACKENDSCACHE):
  for auth_backend in backends:
   backend = module_member(auth_backend)
   if issubclass(backend, BaseAuth):
    BACKENDSCACHE[backend.name] = backend
 return BACKENDSCACHE

def load_backends ( backends , force_load = False ) : global BACKENDSCACHE if force_load : BACKENDSCACHE = { } if ( not BACKENDSCACHE ) : for auth_backend in backends : backend = module_member ( auth_backend ) if issubclass ( backend , BaseAuth ) : BACKENDSCACHE [ backend . name ] = backend return BACKENDSCACHE
load backends defined on social_auth_authentication_backends .