#NEWLINE# @ _lazy_load #NEWLINE# def _get_sendfile( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# from importlib import import_module #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# from django.utils.importlib import import_module #NEWLINE# #UNINDENT# from django.conf import settings #NEWLINE# from django.core.exceptions import ImproperlyConfigured #NEWLINE# backend = getattr ( settings , 'SENDFILE_BACKEND' , None ) #NEWLINE# if ( not backend ) : #NEWLINE# #INDENT# raise ImproperlyConfigured ( 'You must specify a value for SENDFILE_BACKEND' ) #NEWLINE# #UNINDENT# module = import_module ( backend ) #NEWLINE# return module . sendfile