From 4b3a67387202e1a3c69a64e0b96c11ba3ec54a64 Mon Sep 17 00:00:00 2001 From: derrickpriebe <dpriebe@gmail.com> Date: Sun, 10 Jul 2022 21:20:14 -0700 Subject: [PATCH] Working HTML based structure --- app.py | 14 +++++--------- html/home.html => templates/home copy.html | 0 templates/home.html | 3 +++ home.j2 => templates/home_copy.j2 | 0 4 files changed, 8 insertions(+), 9 deletions(-) rename html/home.html => templates/home copy.html (100%) create mode 100644 templates/home.html rename home.j2 => templates/home_copy.j2 (100%) diff --git a/app.py b/app.py index 4d2ff57..9df4794 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,4 @@ -from flask import Flask +from flask import Flask, render_template, json, redirect, request # Flask constructor app = Flask(__name__) @@ -6,12 +6,8 @@ # Homepage URL call @app.route("/") def home(): - return redirect("/html/home") - -@app.route("/html/home") -def Main(): - return render_template("html/home.html") + return render_template("home.html") -# main driver function -if __name__ == '__main__': - app.run() \ No newline at end of file +# Listener +if __name__ == "__main__": + app.run(port=2509, debug=True) \ No newline at end of file diff --git a/html/home.html b/templates/home copy.html similarity index 100% rename from html/home.html rename to templates/home copy.html diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..02ba251 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,3 @@ +<html> + <h1>MLS Players Analysis</h1> +</html> \ No newline at end of file diff --git a/home.j2 b/templates/home_copy.j2 similarity index 100% rename from home.j2 rename to templates/home_copy.j2