<s> """<STR_LIT>""" <EOL> import logging <EOL> import os <EOL> from google . appengine . api import lib_config <EOL> _config_handle = lib_config . register ( <EOL> '<STR_LIT>' , { '<STR_LIT>' : os . getenv ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) } ) <EOL> settings_path = _config_handle . settings_module <EOL> from google . appengine . ext . webapp import util <EOL> os . environ [ '<STR_LIT>' ] = settings_path <EOL> if os . environ . get ( '<STR_LIT>' ) == '<STR_LIT>' : <EOL> import google . appengine . ext . webapp . template <EOL> else : <EOL> try : <EOL> import django <EOL> except ImportError : <EOL> msg = ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> logging . error ( msg ) <EOL> raise RuntimeError ( msg ) <EOL> from django . core import management <EOL> from django . core . handlers import wsgi <EOL> try : <EOL> settings = __import__ ( settings_path ) <EOL> management . setup_environ ( settings , original_settings_path = settings_path ) <EOL> except ImportError : <EOL> pass <EOL> app = wsgi . WSGIHandler ( ) <EOL> def main ( ) : <EOL> """<STR_LIT>""" <EOL> util . run_wsgi_app ( app ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
