我在views.py中使用了以下函数
def getdata(request):
with open('./studata.csv', 'r') as csvfile:
csv_file_reader = csv.DictReader(csvfile)
records = list(csv_file_reader)
count = len(records)
return render(request,'showdata.html',{'records':records})
这是csv文件-
Roll,Name,Stream
11,Bedanta Borah,Non-Medical,
1,Varsha Sharma,Non-Medical,
3,Nancy,Commerce,
4,Akshita,Humanities,
This data should be displayed in showdata.html. How do I traverse through the data in the HTML page ?
例如:
更多信息请参见info
相关问题 更多 >
编程相关推荐