From 15081d0409bfe342be3efcd62a871a1341bf879d Mon Sep 17 00:00:00 2001 From: spikey Date: Sat, 24 Feb 2024 11:16:19 -0500 Subject: [PATCH] hello --- main.py | 6 ++++-- templates/index.html | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 templates/index.html diff --git a/main.py b/main.py index 82923f7..ec8e60d 100755 --- a/main.py +++ b/main.py @@ -1,10 +1,12 @@ #!/usr/bin/env python3 from flask import Flask +from flask import render_template app = Flask(__name__) @app.route("/") def hello_world(): - return "

Hello, World!

" + return render_template('index.html') -app.run() +if __name__ == '__main__': + app.run(port=8080, debug=True) diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..4db37d8 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,9 @@ + + + + thing + + +

hi

+ +