[django]cbv方式
cbv的方式
1.简单的url
from django.views.generic import TemplateView
path('', TemplateView.as_view(template_name='app01/index.html')),
2,写到类里

继承了View,


1.简单的url
from django.views.generic import TemplateView
path('', TemplateView.as_view(template_name='app01/index.html')),
2,写到类里

继承了View,

