1data = Students.objects.all()
2stu = {
3 "student_number": data
4}
5return render_to_response("login/profile.html", stu)
6
7// in html file :
8{% for student in student_number %}
9 {{ student.f_name}}
10 {{ student.l_name }}
11 {{ student.student_number }}
12 {{ student.dob }}
13{% endfor %}