Chapter 5

This commit is contained in:
2023-06-03 17:32:23 +02:00
parent f9020e921f
commit 428e022bd4
9 changed files with 136 additions and 21 deletions

View File

@@ -1,8 +1,12 @@
{% extends "base.html" %}
{% extends 'base.html' %}
{% block content %}
<h1>Hi, {{ user.username }}!</h1>
{% for post in posts %}
<div><p>{{ post.author.username }} says: <b>{{ post.body }}</b></p></div>
{% endfor %}
{% endblock %}
<h1>Hi, {{ current_user.username }}!</h1>
{% for post in posts %}
<div>
<p>
{{ post.author.username }} says: <b>{{ post.body }}</b>
</p>
</div>
{% endfor %}
{% endblock %}