diff --git a/webui.py b/webui.py index be7768f..f95cdd4 100644 --- a/webui.py +++ b/webui.py @@ -1,4 +1,5 @@ from flask import Flask, render_template, session +from flask_mysqldb import MySQL import json cfg = json.load(open("config.json")) @@ -6,6 +7,13 @@ cfg = json.load(open("config.json")) app = Flask(__name__) app.secret_key = cfg['secret_key'] +# app.config['MYSQL_HOST'] = cfg['db_host'] +# app.config['MYSQL_DB'] = cfg['db_name'] +# app.config['MYSQL_USER'] = cfg['db_user'] +# app.config['MYSQL_PASSWORD'] = cfg['db_password'] + +# mysql = MySQL(app) + @app.route("/") def hello(): session['userid'] = 1