Ask coding questions

← Back to all posts
Stuck with flask app
A036Nikhil (0)

I don't know but my base.html is not working, I guess.
So as per tutorial, I should get this pic in my screen but its only showing Hello, Miguel.

Comments
hotnewtop
Coder100 (18876)

If you forgot, you still need to add more code!
Don't forget about the block, and the extends:

<html>

<head>
	{% if title %}
	<title>{{ title }} - Microblog</title>
	{% else %}
	<title>Welcome to Microblog!</title>
	{% endif %}
</head>

<body>
	<h1>Hello, {{ user.username }}!</h1>
        {% block content %}{% endblock %}
</body>

</html>

to fix in the base.html