<s> import os <EOL> import sys <EOL> import logging <EOL> logging . info ( '<STR_LIT>' , __name__ , os . getenv ( '<STR_LIT>' ) ) <EOL> def bootstrap_django ( ) : <EOL> from google . appengine . dist import use_library <EOL> use_library ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> import django <EOL> logging . info ( '<STR_LIT>' , django . __file__ , django . VERSION ) <EOL> assert django . VERSION [ <NUM_LIT:0> ] >= <NUM_LIT:1> , "<STR_LIT>" <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> from django . conf import settings <EOL> settings . _target = None <EOL> bootstrap_django ( ) <EOL> from google . appengine . ext . webapp import util <EOL> from google . appengine . ext . webapp import template as template_registrar <EOL> def BREAKPOINT ( ) : <EOL> import pdb <EOL> p = pdb . Pdb ( None , sys . __stdin__ , sys . __stdout__ ) <EOL> p . set_trace ( ) <EOL> import django . core . handlers . wsgi <EOL> import django . core . signals <EOL> import django . db <EOL> import django . dispatch . dispatcher <EOL> import django . forms <EOL> django . newforms = django . forms <EOL> def log_exception ( * args , ** kwds ) : <EOL> if sys is None : <EOL> pass <EOL> else : <EOL> cls , err = sys . exc_info ( ) [ : <NUM_LIT:2> ] <EOL> logging . exception ( '<STR_LIT>' , cls . __name__ , err ) <EOL> django . core . signals . got_request_exception . connect ( log_exception ) <EOL> django . core . signals . got_request_exception . disconnect ( django . db . _rollback_on_exception ) <EOL> def main ( ) : <EOL> application = django . core . handlers . wsgi . WSGIHandler ( ) <EOL> template_registrar . register_template_library ( '<STR_LIT>' ) <EOL> util . run_wsgi_app ( application ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
