|
@@ -24,7 +24,7 @@ DBHOST = os.environ.get('DBHOST', 'localhost')
|
|
|
# setup
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
-app.config['SQLALCHEMY_DATABASE_URI'] = DBDRIVER + '//benchmarkdbuser:benchmarkdbpass@%s:3306/hello_world?charset=utf8' % DBHOST
|
|
|
+app.config['SQLALCHEMY_DATABASE_URI'] = DBDRIVER + '://benchmarkdbuser:benchmarkdbpass@%s:3306/hello_world?charset=utf8' % DBHOST
|
|
|
app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False
|
|
|
db = SQLAlchemy(app)
|
|
|
dbraw_engine = create_engine(app.config['SQLALCHEMY_DATABASE_URI'], connect_args={'autocommit': True}, pool_reset_on_return=None)
|