Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends '_base.html' %}
- {% block title %} {{ post.title }} {% endblock title %}
- {% block body %}
- <div>
- <div>{{ post.title }}</div>
- <div>{{ post.description }}</div>
- <div>Likes: {{ post.likes.all|length }}</div>
- <img src="{{ post.photo.url }}" alt="" style="max-width: 500px">
- <div>
- {% for comment in post.comments.all %}
- {{ comment.user }}<br>
- {{ comment.created_on }}<br>
- {{ comment.comment }}<br>
- <hr>
- {% endfor %}
- </div>
- </div>
- {% endblock body %}
Advertisement
Add Comment
Please, Sign In to add comment