From 872e055a3fef38c0deaafd0389da345d986b591f Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 8 Jan 2020 21:42:21 -0800 Subject: [PATCH] Fix app pathing --- amanuensis/app/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/amanuensis/app/__init__.py b/amanuensis/app/__init__.py index d5fda82..44d7a5f 100644 --- a/amanuensis/app/__init__.py +++ b/amanuensis/app/__init__.py @@ -2,9 +2,9 @@ from flask import Flask, render_template import config -app = Flask("amanuensis") +app = Flask(__name__, template_folder="../templates") app.secret_key = bytes.fromhex(config.get('secret_key')) -@app.route("/") -def root(): - return render_template("admin.html", username="guest") +from .auth import bp +app.register_blueprint(auth.bp) +