Writing Code to get data from database in views.py then pass it to template files using render function.
Get Data which is passed by render function of views.py file in template file.
all( ) – It returns a copy of current QuerySetor QuerySet Subclass.
Syntax:-
ModelClassName.objects.all()