reverse(两种反向生成url django原生形式和rest_framework中版本的形式) views.py from django.shortcuts import render,HttpResponse from rest_framework.views import APIView from django.urls import reverse from rest_framework.request import Request # Create your views here.…