一.通过 QueryParameterVersioning 获取版本 通过 QueryParameterVersioning 从 get 请求中获取版本信息: 1.新建 app,名为 api,Project/urls.py: from django.contrib import admin from django.urls import path, include from app.views import IndexView, OrderView, UserInfo urlpatterns =…