def parse_backend_conf(backend, **kwargs):
 conf = settings.CACHES.get(backend, None)
 if (conf is not None):
  args = conf.copy()
  args.update(kwargs)
  backend = args.pop('BACKEND')
  location = args.pop('LOCATION', '')
  return (backend, location, args)
 else:
  try:
   (mod_path, cls_name) = backend.rsplit('.', 1)
   mod = importlib.import_module(mod_path)
   backend_cls = getattr(mod, cls_name)
  except (AttributeError, ImportError, ValueError):
   raise InvalidCacheBackendError(("Could not find backend '%s'" % backend))
  location = kwargs.pop('LOCATION', '')
  return (backend, location, kwargs)
 raise InvalidCacheBackendError(("Couldn't find a cache backend named '%s'" % backend))

def parse_backend_conf ( backend , ** kwargs ) : conf = settings . CACHES . get ( backend , None ) if ( conf is not None ) : args = conf . copy ( ) args . update ( kwargs ) backend = args . pop ( 'BACKEND' ) location = args . pop ( 'LOCATION' , '' ) return ( backend , location , args ) else : try : ( mod_path , cls_name ) = backend . rsplit ( '.' , 1 ) mod = importlib . import_module ( mod_path ) backend_cls = getattr ( mod , cls_name ) except ( AttributeError , ImportError , ValueError ) : raise InvalidCacheBackendError ( ( "Could not find backend '%s'" % backend ) ) location = kwargs . pop ( 'LOCATION' , '' ) return ( backend , location , kwargs ) raise InvalidCacheBackendError ( ( "Couldn't find a cache backend named '%s'" % backend ) )
helper function to parse the backend configuration that doesnt use the uri notation .