From 8454e2a9fbe1de42ad742c2b4a593e3fe706ff11 Mon Sep 17 00:00:00 2001 From: starnakin Date: Sun, 4 Jun 2023 03:32:42 +0200 Subject: [PATCH] add: use home template --- home.py | 6 ++++++ main.py | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 home.py diff --git a/home.py b/home.py new file mode 100644 index 0000000..ce342a1 --- /dev/null +++ b/home.py @@ -0,0 +1,6 @@ +import main +import flask + +@main.app.route("/home", methods = ['GET']) +def home(): + return (flask.render_template("home/index.html")) diff --git a/main.py b/main.py index b240766..99286ca 100644 --- a/main.py +++ b/main.py @@ -3,10 +3,6 @@ import database app = flask.Flask(__name__) -@app.route("/") -def home(): - return "

Hello, World!

" - if (__name__ == "__main__"): app.run()