@_lazy_load
def _get_sendfile():
    try:
        from importlib import import_module
    except __HOLE__:
        from django.utils.importlib import import_module
    from django.conf import settings
    from django.core.exceptions import ImproperlyConfigured

    backend = getattr(settings, 'SENDFILE_BACKEND', None)
    if not backend:
        raise ImproperlyConfigured('You must specify a value for SENDFILE_BACKEND')
    module = import_module(backend)
    return module.sendfile
dataset/ETHPy150Open johnsensible/django-sendfile/sendfile/__init__.py/_get_sendfile