Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dict = {"projects": Project.objects.all(), "errors": Error.objects.all(), "programmers": Developer.objects.all()}
- {% for item in projects %}
- {{ print(projects.name) }}
- {% endfor %}
- {% for item in errors %}
- {{ print(errors.name) }}
- {% endfor %}
- <table>
- <tr>
- <td>{{ "Первый элемент projects" }}</td>
- <td>{{ "Первый элемент errors" }}</td>
- ...
- </tr>
- <tr>
- <td>{{ "Второй элемент projects" }}</td>
- <td>{{ "Второй элемент errors" }}</td>
- ...
- </tr>
- ...
- </table>
Add Comment
Please, Sign In to add comment