RE: How to count total number of student to display in template

2020-04-30 Thread lumwakapuku
In you are view create a function Eg def student():       student = Student.objects.all()       Tt_student = student.count()        Context = { "student":student, "Tt_student":Tt_student }        Return render(request, "your templete here", context)In you templete render it as {{ Tt_student  }}

Re: How to count total number of student to display in template

2020-04-30 Thread lumwakapuku
lumwakapuku wrote:In you are view create a function Eg def student():       student = Student.objects.all()       Tt_student = student.count()        Context = { "student":student, "Tt_student":Tt_student }        Return render(request, "your templete here", contex