from django.http import HttpResponse from django.shortcuts import render # Create your views here. def index(request): print("页面请求处理中") return render(request, 'index.html') def blog(request, id): return HttpResponse("id是" + str(id) + "的博客页面") def blog2(request, year, month, day, id): return HttpResponse(str(year) + '/' + str(month) + '/' + str(day) + '/' + ' id是' + str(id) + "的博客页面") def blog3(request, year, month, day): return HttpResponse(str(year) + '/' + str(month) + '/' + str(day) + "的博客页面")