取限定条数的数据和查看总数
# 从数据库 按排序读取数据 取前5个 存到latest_question_list中
latest_question_list = Question.objects.order_by('-pub_date')[:5]
# 以, 链接 从 latest_question_list 逐条取出的q 中的 question_text值
output = ', '.join([q.question_text for q in latest_question_list])
#返回结果
return HttpResponse(output)
#查看有多少条数据
datatime_log.objects.all()[8:13].count()