For my site I have this .py file:
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
output = "Hello, Maria!"
return render_template('index.html', output=output)
if __name__ == '__main__':
app.run()
And this HTML file:
<!DOCTYPE html>
<html>
<head>
<title>My Flask App</title>
</head>
<body>
<h1>Welcome to My Flask App</h1>
<div id="output"></div>
</body>
</html>
My goal is to get "output" displayed on my website, but it's not being displayed.
What am I doing wrong?