From 0895444405c0a65853bda7158107ab6fc58f5895 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 1 Sep 2019 15:19:30 +1000 Subject: [PATCH] prepare for backend dev --- webui.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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