基于jwt模块实现登录功能
view代码from rest_framework.views import APIViewfrom rest_framework.response import Responseclass Login(APIView): ''' 登录模块 ''' def post(self,request): # 获取用户名 name = request.data.get('name') # 获取密码 passw