+ 1

How i can show mysql output in django?

20th Sep 2020, 11:28 AM
Rice Noodle
Rice Noodle - avatar
2 ответов
+ 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 %}
20th Sep 2020, 11:37 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar