摘要: from polls_app.model import Choice, Question #导入函数Question.object.filter(id=1)Question.object.filter(question_text__startswith='...') // startswith前面是双下划线Question.object.get(pk=1) //也是一条查询语句..通过主键查找q... 阅读全文
posted @ 2018-09-06 21:01 TedT 阅读(118) 评论(0) 推荐(0)