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
from flask import Flask
from flask import render_template

app = Flask(__name__)

def index():
    return render_template('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 %}
{% block title %}Smells Like Bakin'{% endblock %}
{% block content %}{% endblock %}