开发者

how to go to the next page using django paginator?

I have something li开发者_如何学Pythonke this:

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

And when I am going to page 2 and onward its giving MultiValueDictKeyError:

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


return render_to_response(' ', dict(pagination=myobj, data=myresult), context)

.

{{ pagination.somevar }}
{{ data.somevar }}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜