updated base.html to have a appropriate navbar, use Status class and a quick test route in main
This commit is contained in:
6
main.py
6
main.py
@@ -26,9 +26,13 @@ db = SQLAlchemy(app)
|
||||
ma = Marshmallow(app)
|
||||
Bootstrap(app)
|
||||
|
||||
@app.route("/test", methods=["GET"])
|
||||
def test():
|
||||
return render_template("base.html", alert=st.GetAlert(), message=st.GetMessage())
|
||||
|
||||
@app.route("/", methods=["GET"])
|
||||
def main_page():
|
||||
return render_template("base.html")
|
||||
return render_template("base.html", alert=st.GetAlert(), message=st.GetMessage())
|
||||
|
||||
if __name__ == "__main__":
|
||||
if hostname == PROD_HOST:
|
||||
|
||||
Reference in New Issue
Block a user