from django.shortcuts import render from django.http import JsonResponse # Create your views here. def student(request): return JsonResponse({"sid": 1, "sname":"张三"})