CBV的使用方式与请求流程

from django.shortcuts import render,HttpResponse
from django.views import View

class BookView(View):

    def get(self,request):
        return HttpResponse('get....')

    def post(self,request):
        return HttpResponse('post....')

 请求流程

用户 - wsgi - 中间件 - url路由 - view视图 - orm