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.

Coder100 (18876)

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


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

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


to fix in the base.html