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
}}
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
2 matches
Mail list logo