Python Flask Basics Templates and Static Files Simple Template

Brian Patterson
Brian Patterson
19,585 Points

Why is this not working?

Not sure why this is not working?

flask_app.py
from flask import Flask
from flask import render_template

app = Flask(__name__)


@app.route('/hello/<name>')
def hello(name="Treehouse"):
    return render_template("hello.html")
templates/hello.html
<!doctype html>
<html>
<head><title>Hello!</title></head>
<body>
<h1>{{name}}</h1>
</body>
</html>