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 }}
精彩评论