摘要: 1异常处理 常规办法 try: question = Question.objects.get(pk = question_id) except Question.DoesNotExist: raise Http404("sorry no exist") 新写法 from django.shortc 阅读全文
posted @ 2020-04-22 12:12 spidernyp 阅读(344) 评论(0) 推荐(0) 编辑