def get_internal_wsgi_application():
 from django.conf import settings
 app_path = getattr(settings, u'WSGI_APPLICATION')
 if (app_path is None):
  return get_wsgi_application()
 return import_by_path(app_path, error_prefix=(u"WSGI application '%s' could not be loaded; " % app_path))

def get_internal_wsgi_application ( ) : from django . conf import settings app_path = getattr ( settings , u'WSGI_APPLICATION' ) if ( app_path is None ) : return get_wsgi_application ( ) return import_by_path ( app_path , error_prefix = ( u"WSGI application '%s' could not be loaded; " % app_path ) )
loads and returns the wsgi application as configured by the user in settings .