made settings work lamely, but functional for now, also removed test route
This commit is contained in:
7
main.py
7
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())
|
||||
|
||||
Reference in New Issue
Block a user