Skip to content

Commit

Permalink
removing useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
fifthaccess committed May 10, 2022
1 parent b7544ce commit c14acd4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
from flask import Flask
from model.models import Kuenstler,Lied,LiedKuenstler,Manager,db
from model.models import db
from flask.templating import render_template
#from addItemForm import AddItemForm
from controllers.index import index_blueprint
from controllers.manager import manager_blueprint
from controllers.kuenstler import kuenstler_blueprint
from controllers.lied import lied_blueprint
app = Flask(__name__)
app.secret_key = "fifth"

app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql://root:root@localhost/Projekt_06"

db.init_app(app)
#@app.route("/", methods=["get","post"])
#def index():
# items = db.session.query(Lied).all()
# return render_template("index.html", headline="Übersicht")#, form = addItemFormObject, items = items)


app.register_blueprint(index_blueprint)
app.register_blueprint(manager_blueprint)
app.register_blueprint(kuenstler_blueprint)
app.register_blueprint(lied_blueprint)
if __name__ == "__main__":
app.run(debug=True)

0 comments on commit c14acd4

Please sign in to comment.