def get_first_loader():
 if settings.TEMPLATES:
  loaders = settings.TEMPLATES[0].get(u'OPTIONS', {}).get(u'loaders', [[u'']])
 else:
  loaders = settings.TEMPLATE_LOADERS
 if isinstance(loaders[0], six.string_types):
  return loaders[0]
 return loaders[0][0]

def get_first_loader ( ) : if settings . TEMPLATES : loaders = settings . TEMPLATES [ 0 ] . get ( u'OPTIONS' , { } ) . get ( u'loaders' , [ [ u'' ] ] ) else : loaders = settings . TEMPLATE_LOADERS if isinstance ( loaders [ 0 ] , six . string_types ) : return loaders [ 0 ] return loaders [ 0 ] [ 0 ]
returns first loader from settings .