开发者

how to go to the next page using django paginator?

开发者 https://www.devze.com 2023-01-14 18:50 出处:网络
I have something li开发者_如何学Pythonke this: myobj = paginator_method(request, myresult) return render_to_response(\' \', myobj, context)

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

精彩评论

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