From c6d31f79ce29836732bb8367603906b3efd9d156 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 23 Oct 2023 12:22:51 -0400 Subject: [PATCH] moved templates directory --- src/main.py | 2 +- {src/templates => templates}/hello.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename {src/templates => templates}/hello.html (78%) diff --git a/src/main.py b/src/main.py index 713f295..6f0a17a 100644 --- a/src/main.py +++ b/src/main.py @@ -1,7 +1,7 @@ from flask import Flask, render_template from config import load_config -app = Flask(__name__) +app = Flask(__name__, template_folder="../templates") config = load_config() @app.route("/") diff --git a/src/templates/hello.html b/templates/hello.html similarity index 78% rename from src/templates/hello.html rename to templates/hello.html index 5974d17..745a32d 100644 --- a/src/templates/hello.html +++ b/templates/hello.html @@ -6,7 +6,7 @@ {{ name }}