<s> from flask_sqlalchemy import SQLAlchemy <EOL> from flask import Flask <EOL> app = Flask ( __name__ ) <EOL> app . debug = True <EOL> app . secret_key = '<STR_LIT>' <EOL> from setting import MYSQL_USER , MYSQL_PASS , MYSQL_HOST_M , MYSQL_HOST_S , MYSQL_PORT , MYSQL_DB <EOL> app . config [ '<STR_LIT>' ] = '<STR_LIT>' % ( MYSQL_USER , MYSQL_PASS , MYSQL_HOST_M , MYSQL_PORT , MYSQL_DB ) <EOL> app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> class nullpool_SQLAlchemy ( SQLAlchemy ) : <EOL> def apply_driver_hacks ( self , app , info , options ) : <EOL> super ( nullpool_SQLAlchemy , self ) . apply_driver_hacks ( app , info , options ) <EOL> from sqlalchemy . pool import NullPool <EOL> options [ '<STR_LIT>' ] = NullPool <EOL> del options [ '<STR_LIT>' ] <EOL> db = nullpool_SQLAlchemy ( app ) <EOL> import view </s>
