This commit is contained in:
spikey 2024-02-24 11:16:19 -05:00
parent 27ba8ab59e
commit 15081d0409
2 changed files with 13 additions and 2 deletions

View File

@ -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 "<p>Hello, World!</p>"
return render_template('index.html')
app.run()
if __name__ == '__main__':
app.run(port=8080, debug=True)

9
templates/index.html Normal file
View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>thing</title>
</head>
<body>
<h1>hi</h1>
</body>
</html>