Criando os dados de posts (data.py) e usando o loop for no template Django

This commit is contained in:
Luiz Otávio
2023-04-26 09:22:24 -03:00
parent a38811fbd1
commit 72b77da228
4 changed files with 610 additions and 12 deletions

View File

@@ -3,5 +3,7 @@
{% block texto %} {{ text }} {% endblock texto %}
{% block posts %}
{% include 'global/partials/postblock.html' %}
{% for post in posts %}
{% include 'global/partials/postblock.html' %}
{% endfor %}
{% endblock posts %}