陈挚

  • 内容:我的错误: 提示错误: Exception Type: AttributeError Exception Value: type object 'Person' has no attribute 'DoesNoExist' 源码: def person_detail(request, pk): try: p = Person.objects.get(pk=pk) except Person.DoesNoExist: raise Http404('Person Does Not Exit') 引入的对象为: from django.http import HttpResponse, HttpResponseRedirect, Http404 from app1.models import Person 请问这个怎么解决?!!!