Python Flask Basics Templates and Static Files Template Inheritance

natalia iaroslavskaia
natalia iaroslavskaia
7,293 Points

What does the challenge expect to be in the title and in the body? What is wrong here?

I am clueless

flask_app.py
from flask import Flask
from flask import render_template

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')
templates/index.html
{% extends "layout.html" %}
{% block title %}Homepage{% endblock %}
{% block content %}
<h1>Smells Like Bakin'!</h1>
<p>Welcome to my bakery web site!</p>
{% endblock %}
templates/layout.html
{% block title %}Smells Like Bakin'{% endblock %}
{% block content %}{% endblock %}