-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fifthaccess
committed
May 10, 2022
1 parent
b7544ce
commit c14acd4
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |