+ 1
How i can show mysql output in django?
2 Respostas
+ 5
First store data in variables and then send it to web template..
Understand with these codes..
return render(request,'page.html',{'content':{'name':'akshay','gender':'male'}})
And in your html page
{% for a,b in content.items %}
{{a}} {{b}}
<br />
{% endfor %}
+ 2
Might be helpful:
https://stackoverflow.com/questions/17711985/is-there-a-simple-way-to-display-mysql-data-in-django-template-without-creating
https://www.plus2net.com/JUMP_LINK__&&__python__&&__JUMP_LINK/dj-mysql-display.php
https://medium.com/@omaraamir19966/connect-django-with-mysql-database-f946d0f6f9e3