created models

This commit is contained in:
Александр Геннадьевич Сальный
2022-10-17 20:59:54 +03:00
parent 2cb9c160ff
commit 1808c8238f
3 changed files with 31 additions and 0 deletions

21
app.py
View File

@@ -0,0 +1,21 @@
from flask import Flask, render_template
from models import db
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////app.db'
db.init_app(app)
@app.route("/")
def index():
return render_template("index.html")
if __name__ == "__main__":
app.run(host="0.0.0.0", debug="True", port="3800")