<s> import logging <EOL> from flask import Flask <EOL> from flask . ext . appbuilder import SQLA , AppBuilder <EOL> from sqlalchemy . engine import Engine <EOL> from sqlalchemy import event <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( '<STR_LIT>' ) <EOL> db = SQLA ( app ) <EOL> appbuilder = AppBuilder ( app , db . session ) <EOL> logging . basicConfig ( format = '<STR_LIT>' ) <EOL> logging . getLogger ( ) . setLevel ( logging . DEBUG ) <EOL> @ event . listens_for ( Engine , "<STR_LIT>" ) <EOL> def set_sqlite_pragma ( dbapi_connection , connection_record ) : <EOL> cursor = dbapi_connection . cursor ( ) <EOL> cursor . execute ( "<STR_LIT>" ) <EOL> cursor . close ( ) <EOL> from app import views , models </s>
