def _django_setup():
 if (os.environ.get('APPENGINE_RUNTIME') != 'python27'):
  __django_version_setup()
 import django
 import django.conf
 try:
  raise ImportError
 except (ImportError, EnvironmentError) as e:
  if os.getenv(django.conf.ENVIRONMENT_VARIABLE):
   logging.warning(e)
  try:
   django.conf.settings.configure(DEBUG=False, TEMPLATE_DEBUG=False, TEMPLATE_LOADERS=('django.template.loaders.filesystem.load_template_source',))
  except (EnvironmentError, RuntimeError):
   pass

def _django_setup ( ) : if ( os . environ . get ( 'APPENGINE_RUNTIME' ) != 'python27' ) : __django_version_setup ( ) import django import django . conf try : raise ImportError except ( ImportError , EnvironmentError ) as e : if os . getenv ( django . conf . ENVIRONMENT_VARIABLE ) : logging . warning ( e ) try : django . conf . settings . configure ( DEBUG = False , TEMPLATE_DEBUG = False , TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source' , ) ) except ( EnvironmentError , RuntimeError ) : pass
imports and configures django .