from django.shortcuts import render from django.http import HttpResponse, HttpResponseForbidden # Create your views here. def hello(request): # 如果用户通过POST提交,通过request.POST获取提交数据 return HttpResponseForbidden("hello")