Skip to content
Advertisement

How to show more objects in my html with django (queries)

I want to show more queries within my html page but it only shows a single object. I do not know how to add more

This is in mysql, html, django1.11 and python 2.7.15

views.py

JavaScript
JavaScript

i need add object mapa and competencias. The object alumno i dont have problem

Advertisement

Answer

User filter instead of get. Because, get returns a single object, but filter returns all matching objects.

JavaScript

In your template

For Alumnao,

JavaScript

For mapa,

JavaScript

For competencias,

JavaScript
Advertisement