摘要:
路由: from django.contrib import admin from django.urls import path from app01 import views from rest_framework_jwt.views import obtain_jwt_token urlpat 阅读全文
摘要:
认证: from rest_framework.authentication import BaseAuthentication from rest_framework.exceptions import AuthenticationFailed from rest_framework.settin 阅读全文
摘要:
新建一个py文件,代码如下 from rest_framework import serializers from app01.models import Book class BookModelSerializer(serializers.ModelSerializer): class Meta: 阅读全文