Criando os dados de posts (data.py) e usando o loop for no template Django
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user