jamespacileo/django-pure-pagination

http://www.syrme.top/list/1.html?page=2?visitDstTime=1

Opened this issue · 1 comments

But when it works on the server, it comes up with this

def fen(request,contact_list):
	try:
		page = request.GET.get('page', 1)
	except PageNotAnInteger:
		page = 1
	p = Paginator(contact_list, 30)
	contact_list = p.page(page)
	return contact_list


def movie(request, head_id):
	context_mv = Movie.objects.filter(movie_head=head_id)[::-1]
	number = len(context_mv)
	context = fen(request, context_mv)
	return render(request, 'movie/more.html', {'context': context, 'number': number})

Use this to temporarily solve this problem

page = request.GET.get('page', 1).split('?')[0]