listener/app_engine/appengine_django/__init__.py
def InstallAppengineHelperForDjango(version=None):
  """Installs and Patches all of the classes/methods required for integration.

  If the variable DEBUG_APPENGINE_DJANGO is set in the environment verbose
  logging of the actions taken will be enabled.
  """

  FixPython26Logging()
  LoadSdk()
  LoadDjango(version)

  from django import VERSION
  from django.conf import settings

  # Adding this again here to solve a problem that happens when context
  # switching from webapp.template to django.template.
  # TODO(elsigh): Maybe there is a deeper, fixable problem somewhere?
  os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

  if VERSION < (1, 0, None):
    logging.error("Django 1.0 or greater is required!")
    sys.exit(1)


  if os.getenv("DEBUG_APPENGINE_DJANGO"):
    logging.getLogger().setLevel(logging.DEBUG)
  else:
    logging.getLogger().setLevel(logging.INFO)
  logging.debug("Loading the Google App Engine Helper for Django...")

  # Force Django to reload its settings.
  settings._target = None

  LoadAppengineEnvironment()
  InstallReplacementImpModule()
  InstallReplacementThreadingModule()
  InstallAppengineDatabaseBackend()
  InstallModelForm()
  InstallGoogleMemcache()
  InstallDjangoModuleReplacements()
  PatchDjangoSerializationModules(settings)
  CleanupDjangoSettings(settings)
  ModifyAvailableCommands()
  InstallGoogleSMTPConnection()
  InstallAuthentication(settings)

  logging.debug("Successfully loaded the Google App Engine Helper for Django.")
Installs and Patches all of the classes/methods required for integration.

  If the variable DEBUG_APPENGINE_DJANGO is set in the environment verbose
  logging of the actions taken will be enabled.
  
Installs and Patches all of the classes/methods required for integration.
If the variable DEBUG_APPENGINE_DJANGO is set in the environment verbose
logging of the actions taken will be enabled.
Installs and Patches all of the classes / methods required for integration . If the variable DEBUG_APPENGINE_DJANGO is set in the environment verbose logging of the actions taken will be enabled .
def InstallAppengineHelperForDjango(version=None):
  FixPython26Logging()
  LoadSdk()
  LoadDjango(version)
  from django import VERSION
  from django.conf import settings
  os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
  if VERSION < (1, 0, None):
    logging.error("Django 1.0 or greater is required!")
    sys.exit(1)
  if os.getenv("DEBUG_APPENGINE_DJANGO"):
    logging.getLogger().setLevel(logging.DEBUG)
  else:
    logging.getLogger().setLevel(logging.INFO)
  logging.debug("Loading the Google App Engine Helper for Django...")
  settings._target = None
  LoadAppengineEnvironment()
  InstallReplacementImpModule()
  InstallReplacementThreadingModule()
  InstallAppengineDatabaseBackend()
  InstallModelForm()
  InstallGoogleMemcache()
  InstallDjangoModuleReplacements()
  PatchDjangoSerializationModules(settings)
  CleanupDjangoSettings(settings)
  ModifyAvailableCommands()
  InstallGoogleSMTPConnection()
  InstallAuthentication(settings)
  logging.debug("Successfully loaded the Google App Engine Helper for Django.")
def InstallAppengineHelperForDjango ( version = None ) : FixPython26Logging ( ) LoadSdk ( ) LoadDjango ( version ) from django import VERSION from django . conf import settings os . environ [ 'DJANGO_SETTINGS_MODULE' ] = 'settings' if VERSION < ( 1 , 0 , None ) : logging . error ( "Django 1.0 or greater is required!" ) sys . exit ( 1 ) if os . getenv ( "DEBUG_APPENGINE_DJANGO" ) : logging . getLogger ( ) . setLevel ( logging . DEBUG ) else : logging . getLogger ( ) . setLevel ( logging . INFO ) logging . debug ( "Loading the Google App Engine Helper for Django..." ) settings . _target = None LoadAppengineEnvironment ( ) InstallReplacementImpModule ( ) InstallReplacementThreadingModule ( ) InstallAppengineDatabaseBackend ( ) InstallModelForm ( ) InstallGoogleMemcache ( ) InstallDjangoModuleReplacements ( ) PatchDjangoSerializationModules ( settings ) CleanupDjangoSettings ( settings ) ModifyAvailableCommands ( ) InstallGoogleSMTPConnection ( ) InstallAuthentication ( settings ) logging . debug ( "Successfully loaded the Google App Engine Helper for Django." )
Installs and Patches all of the classes/methods required for integration.
Installs and Patches all of the classes / methods required for integration .
"""Installs and Patches all of the classes/methods required for integration.

  If the variable DEBUG_APPENGINE_DJANGO is set in the environment verbose
  logging of the actions taken will be enabled.
  """ # Adding this again here to solve a problem that happens when context # switching from webapp.template to django.template. # TODO(elsigh): Maybe there is a deeper, fixable problem somewhere? # Force Django to reload its settings.
version