start proj

This commit is contained in:
2022-10-31 19:10:35 +03:00
parent 0de5e255b8
commit 138e85cfa0
7 changed files with 205 additions and 0 deletions

23
app.py Normal file
View File

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