📅  最后修改于: 2022-03-11 14:47:19.399000             🧑  作者: Mango
#Listview is usually a class that
#- generates context (among things)
#- or it takes a Model and generates a View (context) for a template
#- in Django
from django.views.generic import ListView
from myApp.models import myModel
class myListView(Listview)
model = myModel
#above two-liner basically creates a view from a model