access django object in html

Solutions on MaxInterview for access django object in html by the best coders in the world

showing results for - "access django object in html"
Tim
07 Apr 2016
1 {% for x in data %}
2   <h3>{{x.name}}</h3>
3   <h4>{{x.department}}</h4>
4 {% endfor %}
Sanjay
25 Jul 2018
1     data = model1.objects.all()
2     return TemplateResponse(request, 'index.html', {'data': data})
similar questions
queries leading to this page
access django object in html