django 查询

mail = UserProfile.objects.get(email = email)
get如果没有查询到会抛出一个不存在的异常
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 





posted @ 2016-08-08 15:41  意发并行  阅读(155)  评论(0编辑  收藏  举报