16 lines
333 B
Python
16 lines
333 B
Python
|
import json
|
||
|
import MySQLdb
|
||
|
import MySQLdb.cursors
|
||
|
from flask import Flask, make_response, request, render_template
|
||
|
|
||
|
app = Flask(__name__)
|
||
|
|
||
|
with open("config.json", "r") as f:
|
||
|
config = json.load(f)
|
||
|
|
||
|
@app.route("/")
|
||
|
def home_index():
|
||
|
return render_template("index.html")
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
app.run(**config["web"])
|