from django.core.exceptions import ObjectDoesNotExist try: disabledusers.objects.get(sAMAccountName='liu') except ObjectDoesNotExist: print 'a'
except modelname.DoesNotExist:
momingliu ©著作权
文章标签 DoesNotExist django 文章分类 代码人生
from django.core.exceptions import ObjectDoesNotExist try: disabledusers.objects.get(sAMAccountName='liu') except ObjectDoesNotExist: print 'a'
except modelname.DoesNotExist:
文章目录Python - Django - Django 安装1、步骤Python - Django - Django 安装1、步骤
Security in Django
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M