diff --git a/main.py b/main.py index a311b93..c19f3e9 100644 --- a/main.py +++ b/main.py @@ -29,16 +29,11 @@ Bootstrap(app) ################################# Now, import non-book classes ################################### from settings import Settings - ####################################### GLOBALS ####################################### # allow jinja2 to call these python functions directly app.jinja_env.globals['ClearStatus'] = st.ClearStatus - -@app.route("/test", methods=["GET"]) -def test(): - return render_template("base.html", alert=st.GetAlert(), message=st.GetMessage()) - +# default page, just the navbar @app.route("/", methods=["GET"]) def main_page(): return render_template("base.html", alert=st.GetAlert(), message=st.GetMessage()) diff --git a/templates/setting.html b/templates/setting.html new file mode 100644 index 0000000..843da7c --- /dev/null +++ b/templates/setting.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} {% block main_content %} +
| Name | Value |
|---|---|
| {{obj.name}} | {{obj.value}} |