Re: where is the error in pagination?

2019-09-25 Thread leb dev
> > >> >> >> >> {% if object_list.has_previous %} >> >> first >> >> previous >> >> {% endif %} >> >> >>> >> >> Page {{ object_list.number }} of {{ >>> object_list.paginator.num_pages }}. >> >> >> >> >>> {% if

Re: where is the error in pagination?

2019-09-25 Thread laya Mahmoudi
Would you send your html codes relating to pagination در تاریخ چهارشنبه ۲۵ سپتامبر ۲۰۱۹،‏ ۱۵:۰۳ leb dev نوشت: > i tried your answer and display an error : > > That page number is not an integer > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: where is the error in pagination?

2019-09-25 Thread leb dev
i tried your answer and display an error : That page number is not an integer -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

RE: where is the error in pagination?

2019-09-25 Thread laya
Try this one : paginator = Paginator(queryset_list,8) # Show 25 contacts per page page_request_var = "page" page = request.GET.get(page_request_var) try: queryset = paginator.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. queryset =

Re: where is the error in pagination?

2019-09-25 Thread leb dev
no i am using function based views -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web

RE: where is the error in pagination?

2019-09-25 Thread laya
Hi, Do you use Class Based View ? Sent from Mail for Windows 10 From: leb dev Sent: Wednesday, September 25, 2019 2:32 PM To: Django users Subject: where is the error in pagination? i have a django project  and it includes pagination i do not know where is the error in my code but once i