def get_router():
    """Return router defined by RAPIDSMS_ROUTER setting."""
    router = getattr(settings, 'RAPIDSMS_ROUTER',
                     'rapidsms.router.blocking.BlockingRouter')
    if isinstance(router, string_types):
        try:
            router = import_class(router)()
        except __HOLE__ as e:
            raise ImproperlyConfigured(e)
    return router
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/router/api.py/get_router