如何使用Django paginator转到下一页?

2024-09-25 02:29:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我有这样的东西:

myobj = paginator_method(request, myresult)
return render_to_response(' ', myobj, context)

当我读到第2页并继续读下去时,MultiValueDictKeyError

Key 'name' not found in <QueryDict: {u'page': [u'2']}


Tags: tokeynamereturnresponserequestcontextnot