pagination support on async function.

2023-11-28 Thread seokhyun an
hi. I have worked for django using pagination on async function but it seems to having errors cause of default Paginator. (like in the counting functions) is there any plan to make it support async by Paginator itself? or is it already has kind of functionalities but I just have not found one

Re: Pagination on different cards reside on the same template

2021-11-25 Thread Eugene TUYIZERE
ards, David > >> On Fri, Nov 26, 2021 at 6:41 AM Eugene TUYIZERE >> wrote: >> Dear Team, >> >> I have 4 cards on a single html page. I want to display data on each one but >> since the data has many rows I want to apply pagination on each car

Re: Pagination on different cards reside on the same template

2021-11-25 Thread David Nugent
nce the data has many rows I want to apply pagination on each card. > How can I achieve this? I was thinking of using ListView but this displays > pagination on the whole page. I did not try any other codes because I have > no idea > > Kindly assist. > -- > *Eugene* > > >

Pagination on different cards reside on the same template

2021-11-25 Thread Eugene TUYIZERE
Dear Team, I have 4 cards on a single html page. I want to display data on each one but since the data has many rows I want to apply pagination on each card. How can I achieve this? I was thinking of using ListView but this displays pagination on the whole page. I did not try any other codes

Re: Django Pagination paginate dictionary of objects

2020-07-28 Thread jhabar singh
bro try to send a intended code On Tue, Jul 28, 2020 at 5:16 PM Harvindar Singh Garcha < garchaama...@gmail.com> wrote: > I am new to Django, and trying to paginate a dictionary objects, > However I am unable to so and not getting what's wrong with my code, > Its still printing whole data on a

Django Pagination paginate dictionary of objects

2020-07-28 Thread Harvindar Singh Garcha
I am new to Django, and trying to paginate a dictionary objects, However I am unable to so and not getting what's wrong with my code, Its still printing whole data on a single page. Above I have posted my View along with template code. class Search(ListView): paginate_by = 5 def get(self,

Django Pagination paginate dictionary of objects

2020-07-28 Thread Harvindar Singh Garcha
I am new to Django, and trying to paginate a dictionary objects, I am calling stackoverflow API where I want the result to get paginated. However I am unable to so and not getting what's wrong with my code. Above I have posted my View along with template code. > > > class Search(ListView): >

Re: randomizing objects in the view with pagination

2020-07-12 Thread Damanjeet Singh
pear on the page. >> >> I was not using paginations and I have thousands of products so the page >> was obviously loading very slow. >> >> I added pagination and let python manage the query instead of it >> happening on the server-side. This increased the page load but

Re: randomizing objects in the view with pagination

2020-07-12 Thread MUGOYA DIHFAHSIH
r sell on the platform > with hundreds of sellers. > > I was randomizing the product category page when loaded so that items from > all sellers could appear on the page. > > I was not using paginations and I have thousands of products so the page > was obviously loading very slow. >

randomizing objects in the view with pagination

2020-07-12 Thread John McClain
paginations and I have thousands of products so the page was obviously loading very slow. I added pagination and let python manage the query instead of it happening on the server-side. This increased the page load but I lost my randomization. The first page is the only page getting random items

Re: pagination of a specific context in multiple context in ListView not working in django?

2020-06-08 Thread Sunday Iyanu Ajayi
lists, categoies and Post list. the homepage will be contained couple of > blocks or boxes. each box will have different query list like Post list, > User List, category list. But only one context will have pagination and > other won't and ofcourse the pagination will be working on Post

Re: pagination of a specific context in multiple context in ListView not working in django?

2020-06-02 Thread Hella Nick
list like Post list, > User List, category list. But only one context will have pagination and > other won't and ofcourse the pagination will be working on Post list. > > here is the views.py: > > class BlogappListView(ListView): > model = Category,CustomUser &g

pagination of a specific context in multiple context in ListView not working in django?

2020-06-01 Thread Ali Ahammad
in django, i am trying to list some queries of several objects like user lists, categoies and Post list. the homepage will be contained couple of blocks or boxes. each box will have different query list like Post list, User List, category list. But only one context will have pagination

Re: Django Pagination

2020-06-01 Thread maninder singh Kumar
I think there might be a way around, below is the code modified for views.py @login_required def home_view(request): """Display all the post of friends and own posts on the dashboard""" posts = Post.objects.order_by('-date_posted') media: MEDIA_URL #

Re: Django Pagination

2020-06-01 Thread Akshat Zala
Dear Sir, it shows all the text on all the pages. if there are total 5 posts, then it shows all the 5 posts on all the pages. Thanks, Akshat Zala On Saturday, 30 May 2020 20:54:35 UTC+5:30, maninder singh Kumar wrote: > > Views.py looks fine ! > > regards > willy > > > On Sat, May 30, 2020

Re: Django Pagination

2020-05-31 Thread Akshat Zala
{{ num }} {% endif %} {% endfor %} {% if page_obj.has_next %} arrow_right Last {% endif %} {% endif %} It only shows pagination and posts are not seen in template. On Saturday, 30 May 2020 21:39:52 UTC+5:30, RyuCoder wrote: > > Hi akshat, > What is the difficulty? > Where have you de

Re: Django Pagination

2020-05-30 Thread Chetan Ganji
Hi akshat, What is the difficulty? Where have you defined the variable is_paginated? Is it present in the context? On Sat, May 30, 2020, 8:53 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Views.py looks fine ! > > regards > willy > > > On Sat, May 30, 2020 at 7:22 PM Akshat

Re: Django Pagination

2020-05-30 Thread maninder singh Kumar
Views.py looks fine ! regards willy On Sat, May 30, 2020 at 7:22 PM Akshat Zala wrote: > Hello, > > I am finding it difficult to paginate through all the posts > > My views.py : > > @login_required > def home_view(request): > """Display all the post of friends and own posts on the

Re: Django Pagination

2020-05-30 Thread Akshat Zala
On Saturday, 30 May 2020 19:20:47 UTC+5:30, Akshat Zala wrote: > > Hello, > > I am finding it difficult to paginate through all the posts > > My views.py : > > @login_required > def home_view(request): > """Display all the post of friends and own posts on the dashboard""" > posts =

Django Pagination

2020-05-30 Thread Akshat Zala
Hello, I am finding it difficult to paginate through all the posts My views.py : @login_required def home_view(request): """Display all the post of friends and own posts on the dashboard""" posts = Post.objects.all().order_by('-date_posted') media: MEDIA_URL #

Implement querystring using Search option + Pagination

2020-04-27 Thread Gurmeet Kaur
is the one that is providing data to the page + options in dropdown menus. Also, the pagination has been implemented in the page which also changes when the dropdown option is chosen. Is there a way that instead of managing this from template side, can I manage the pagination(when dropdown is chosen

Pagination in Admin class

2020-01-11 Thread Bruckner de Villiers
Does anyone have some example code to achieve pagination to display a model with many records in Admin, please? admin.py – class CurrencyAdmin(admin.ModelAdmin):     paginate_by=10     list_display = ('id', 'currency_Code', 'currency_Description')     fieldsets = (     (None

Re: where is the error in pagination?

2019-09-25 Thread leb dev
;> >> Page {{ object_list.number }} of {{ >>> object_list.paginator.num_pages }}. >> >> >> >> >>> {% if object_list.has_next %} >> >> next >> >> last >> >> {% endif %} >> >> &g

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 Grou

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
nator.page(1) except EmptyPage: # If page is out of range (e.g. ), deliver last page of results. queryset = paginator.page(paginator.num_pages) 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 pagi

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

where is the error in pagination?

2019-09-25 Thread leb dev
i have a django project and it includes pagination i do not know where is the error in my code but once i tired to go to the next or previous page it crash and display the below error : > can only concatenate str(not ""NoneType) to str query=request.GE

Re: how to use django pagination with sql query and not ORM

2019-09-24 Thread Deep Sukhwani
auth_user`.`date_joined` FROM `auth_user` WHERE `auth_user`.`username` LIKE BINARY %alpha% 1: https://docs.djangoproject.com/en/2.2/topics/db/sql/#performing-raw-queries -- Regards Deep L Sukhwani On Wed, 25 Sep 2019 at 00:47, leb dev wrote: > I now how to use django pagination with ORM

how to use django pagination with sql query and not ORM

2019-09-24 Thread leb dev
I now how to use django pagination with ORM django after filtering the required data and put in into *pagination div* *queryset_list = employee.objects.all()* *query=request.GET.get("q")* *if query:* *queryset_list=queryset_list.filter(* * Q(name__icont

Django 2.2 mongoengine query pagination performance

2019-08-07 Thread Felix Tillyard
/benfred/py-spy) which produced the attached charts. Basically it seems like there are many extra function calls, seemingly related to pagination, and the control flow here is different following the upgrade. Any ideas / help would be amazing! Thanks -- You received this message because you

Re: Novice questions about Pagination syntax and classes in general

2019-06-01 Thread John Bagiliko
drone4four wrote: > As part of the official Django doc on Pagination > <https://docs.djangoproject.com/en/2.2/topics/pagination/#using-paginator-in-a-view>, > take a look at the listing function: > > def listing(request): > contact_list = Contacts.objects.all() > p

Novice questions about Pagination syntax and classes in general

2019-06-01 Thread drone4four
As part of the official Django doc on Pagination <https://docs.djangoproject.com/en/2.2/topics/pagination/#using-paginator-in-a-view>, take a look at the listing function: def listing(request): contact_list = Contacts.objects.all() paginator = Paginator(contact_list, 25) # S

Re: Pagination breaks in ListView after migrating from Django 1.11 to 2.2 with SQLite

2019-04-24 Thread Szabolcs Hodossy
s(sql, params, many=False, >> executor=self._execute) >> File "(...)\.env\lib\site-packages\django\db\backends\utils.py", line >> 76, in _execute_with_wrappers >> return executor(sql, params, many, context) >> File "(...)\.env\lib\site-packages\dj

Re: Pagination breaks in ListView after migrating from Django 1.11 to 2.2 with SQLite

2019-04-23 Thread Simon Charette
line > 76, in _execute_with_wrappers > return executor(sql, params, many, context) > File "(...)\.env\lib\site-packages\django\db\backends\utils.py", line > 84, in _execute > return self.cursor.execute(sql, params) > File "(...)\.env\lib\site-package

Pagination breaks in ListView after migrating from Django 1.11 to 2.2 with SQLite

2019-04-23 Thread hodossy . szabolcs
File "(...)\.env\lib\site-packages\django\db\utils.py", line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "(...)\.env\lib\site-packages\django\db\backends\utils.py", line 84, in _execute return self.cursor.execute(

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
Thanks a lot. I worked that out by making the Load More as a clickable button which when pressed will show the contents. On Tue, Feb 19, 2019 at 9:00 PM Godson Rapture wrote: > Check out simple is better than complex blog. It should have a topic on > pagination to help you > > On

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
It did not work. I tried making it using JavaScript like in websites if you might have seen when you press the button then only it shows the content or scrolls down. On Tue, Feb 19, 2019 at 2:01 PM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Can you try this in your views.py? > >

Re: Pagination - Not Working

2019-02-19 Thread Godson Rapture
Check out simple is better than complex blog. It should have a topic on pagination to help you On Tue, Feb 19, 2019, 9:20 AM Aakash Baranwal wrote: > Hello, > > Thanks for offering me your help, but the problem is I can't upload it on > internet as I have signed a Non Disclosu

Re: Pagination - Not Working

2019-02-19 Thread Siddharth Tamang
Can you try this in your views.py? from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator views.py feedTextAll = feedText.objects.order_by('-feedTexDate') pages = Paginator(feedTextAll,5) pageNum = request.GET.get('page') feedtext = pages.get_page(pageNum) return

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
this issue. I am extremely sorry about this. On Tue, Feb 19, 2019 at 1:38 PM Godson Rapture wrote: > Can you upload your code on github let me check where your problem is? > > On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang < > tamangsiddhart...@gmail.com> wrote: > >>

Re: Pagination - Not Working

2019-02-19 Thread Godson Rapture
Can you upload your code on github let me check where your problem is? On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang wrote: > Are you trying pagination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal > wrote: > >> Hello Everyone, >

Re: Pagination - Not Working

2019-02-18 Thread Siddharth Tamang
I set in the beginning, but not > going beyond that. > > On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < > tamangsiddhart...@gmail.com> wrote: > >> Are you trying pagination using JavaScript or Django? >> >> On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal >

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
I have also used Ajax with that. It's load more button is not working, it is showing the 10 posts which is the limit I set in the beginning, but not going beyond that. On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Are you trying paginat

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
I am trying to do it using Django. I used Django Rest Framework API Guide-Pagination for reference On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Are you trying pagination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM

Re: Pagination - Not Working

2019-02-18 Thread Siddharth Tamang
Are you trying pagination using JavaScript or Django? On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal wrote: > Hello Everyone, > > I am new to Django and working towards developing a web app where 10 posts > appear at a time with a "Load More" option given at last whic

Django - Paginate with another GET request; not working with just pagination page number

2017-12-06 Thread Jack
I'm building a page with pagination and a filter form (2 GET requests). If the URL includes both pagination and filter results, something like `/questions/?page=2_questions=on`, it works fine. It also works if it just has filter results, something like `/questions/?all_questions=on`. However

Re: Django admin pagination zero based?

2017-11-28 Thread Matemática A3K
On Tue, Nov 28, 2017 at 3:00 PM, Daniel Jewett <d...@solidether.net> wrote: > I just noticed that the URL get string in my admin app is off by one from > the auto generated pagination links. It appears that the pagination URLs > are zero based. > > For example if I'm

Django admin pagination zero based?

2017-11-28 Thread Daniel Jewett
I just noticed that the URL get string in my admin app is off by one from the auto generated pagination links. It appears that the pagination URLs are zero based. For example if I'm on page 4 of results according to the pagination links, the URL looks like '?p=3' Is this typical? Any

Re: Django form needs pagination and saved data - how????

2017-07-31 Thread Jim Illback
ng it that way for years. ;-) I may be mistaken, but I think the wizard link below requires a “static” or semi-static forms flow path (form1, form2, …, formlast). Generally, when you do pagination, there is no preset number of pages - it depends upon the data being requested or available. So,

Re: Django form needs pagination and saved data - how????

2017-07-30 Thread James Schneider
ode. I thought that's how you're supposed to program in JS? Been doing it that way for years. ;-) I may be mistaken, but I think the wizard link below requires a “static” or semi-static forms flow path (form1, form2, …, formlast). Generally, when you do pagination, there is no preset number of pa

Re: Django form needs pagination and saved data - how????

2017-07-30 Thread Jim Illback
” or semi-static forms flow path (form1, form2, …, formlast). Generally, when you do pagination, there is no preset number of pages - it depends upon the data being requested or available. So, I think that option would not work. But, if I’m wrong, I’d love to know. Thanks. And, as for using Java just so

Re: Django form needs pagination and saved data - how????

2017-07-30 Thread James Schneider
I want the user to check either the full category or individual flashcards to be added to their practice account. To maintain user inputted checkboxes on multiple pages, I must use POST. But, pagination only uses GET. So, a hack on pagination is to wrap the Next/Previous buttons in a sub-form and POST u

Django form needs pagination and saved data - how????

2017-07-28 Thread Jim Illback
to their practice account. To maintain user inputted checkboxes on multiple pages, I must use POST. But, pagination only uses GET. So, a hack on pagination is to wrap the Next/Previous buttons in a sub-form and POST using the buttons. This works for pagination, but then my normal “I’m done, submit

Re: What's the best way to create a reusable pagination template?

2017-02-28 Thread fabrixxm
Yep. My solution is a custom template tag from django.template.defaulttags import register from urllib.parse import urlencode @register.simple_tag(takes_context=True) def querystringmod(context, *args): """Modify current querystring: {% querystringmod name value [name value [...]] %}

What's the best way to create a reusable pagination template?

2017-02-27 Thread Frederik Creemers
The code for rendering pagination controls in my app is the same everywhere: {% if is_paginated %} {% if page_obj.has_previous %} Previous {% endif %} {% if page_obj.has_next %} Previous {% endif

Re: Pagination is not showing and also not working

2017-02-14 Thread Kazi Atik
On Monday, February 13, 2017 at 1:03:23 AM UTC+5:30, Kazi Atik wrote: > > here is my views/ > > from django.contrib.auth.models import User > > from django.core.paginator import Paginator,EmptyPage, PageNotAnInteger > from friends.models import Friendship,UserProfile > from django.http import

Pagination is not showing and also not working

2017-02-12 Thread Kazi Atik
here is my views/ from django.contrib.auth.models import User from django.core.paginator import Paginator,EmptyPage, PageNotAnInteger from friends.models import Friendship,UserProfile from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.shortcuts import render def

Re: Using django pagination or slicing

2016-10-31 Thread ADEWALE ADISA
such that when the user >> scroll the browser another batches will be append to the browser. >> Below are the 3 ways am aiming to achieve this: >> >> 1. Using django pagination feature. >> >> 2. Everytime records need to be appended to the browser , an ajax call is >

Re: Using django pagination or slicing

2016-10-31 Thread ADEWALE ADISA
cord, the page loading > can take minutes. I have experienced that issue with two different > project. > > Django pagination by itself won't give you the infinite scroll you are > expecting. But it should give you an easy interface for slicing the > data from your db. > > An

Re: Using django pagination or slicing

2016-10-31 Thread 王安刚
his: > > 1. Using django pagination feature. > > 2. Everytime records need to be appended to the browser , an ajax call is > made to the view, then the queryset is slice using appropriate lower and > upper band. Then the returned record is appended to the browser. > > 3. Fetch

Re: Using django pagination or slicing

2016-10-31 Thread ludovic coues
I would use 1 + 2 from your list. 3 might work on 1000 record, depending on how much data there is per record. But if you grow to more than 10,000 record, the page loading can take minutes. I have experienced that issue with two different project. Django pagination by itself won't give you

Using django pagination or slicing

2016-10-30 Thread ADEWALE ADISA
are the 3 ways am aiming to achieve this: 1. Using django pagination feature. 2. Everytime records need to be appended to the browser , an ajax call is made to the view, then the queryset is slice using appropriate lower and upper band. Then the returned record is appended to the browser. 3. Fetch

Re: django pagination

2016-01-26 Thread Xristos Xristoou
i find solutio using https://docs.djangoproject.com/en/1.9/topics/pagination/ thnX Τη Τρίτη, 26 Ιανουαρίου 2016 - 3:10:06 μ.μ. UTC+2, ο χρήστης pa xapy έγραψε: > > you want to paginate both querysets at the same page? > i believe it's a pretty strange idea and if so, you should

Re: django pagination

2016-01-26 Thread Xristos Xristoou
i foolow the steps but i have again error my new view : def index(request): try: page = request.GET.get('page', 1), except PageNotAnInteger: page = 1, objects = ['john', 'edward', 'josh', 'frank'] p = Paginator(objects,request=request) people = p.page(page)

Re: django pagination

2016-01-26 Thread Xristos Xristoou
that method is Confusing,i try to understand,i create new view or i work with current?i not understand it the using 'people' and object on they view Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > i want to using Paginator in my main page for my post

Re: django pagination

2016-01-26 Thread pa xapy
are you using python 3? that's actually what i talking about - it's too old try another one, like this https://github.com/jamespacileo/django-pure-pagination - follow the instructions and i hope you'll be fine On Tuesday, January 26, 2016 at 5:09:29 PM UTC+3, Xristos Xristoou wrote: >

Re: django pagination

2016-01-26 Thread Xristos Xristoou
i follow the simpe steps but i take error invalid syntax (pagination_tags.py, line 225) Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > i want to using Paginator in my main page for my post list. i see docs and > examples for that but i thing my

Re: django pagination

2016-01-26 Thread Xristos Xristoou
thnx you i try to use that now Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > i want to using Paginator in my main page for my post list. i see docs and > examples for that but i thing my problem is a specific, because on my view > i have two Querys

Re: django pagination

2016-01-26 Thread pa xapy
for package you choose but i'm afraid that this particular app is too old and you can experience some troubles with it anyways, you can try: pip install django-pagination On Tuesday, January 26, 2016 at 4:44:05 PM UTC+3, Xristos Xristoou wrote: > > one more question how to install this ?autopagi

Re: django pagination

2016-01-26 Thread Xristos Xristoou
one more question how to install this ?autopagination ?i dont see anything Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > i want to using Paginator in my main page for my post list. i see docs and > examples for that but i thing my problem is a

Re: django pagination

2016-01-26 Thread pa xapy
you can read the usage doc i sent linked, but yes - you don't need to do anything with you queryset in view only pass it to template On Tuesday, January 26, 2016 at 4:39:17 PM UTC+3, Xristos Xristoou wrote: > > if i use {autopagination} i dont need quyre on my view ? > > Τη Δευτέρα, 25

Re: django pagination

2016-01-26 Thread Xristos Xristoou
if i use {autopagination} i dont need quyre on my view ? Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > i want to using Paginator in my main page for my post list. i see docs and > examples for that but i thing my problem is a specific, because on my

Re: django pagination

2016-01-26 Thread pa xapy
if you'll decide to use some app for pagination, you can do it in template, like so https://github.com/ericflo/django-pagination/blob/master/docs/usage.txt ({% autopaginate posts 10 %}) or you can choose one of these https://www.djangopackages.com/grids/g/pagination/ there is no actual need

Re: django pagination

2016-01-26 Thread Xristos Xristoou
can you show me one examples with my view ? Τη Δευτέρα, 25 Ιανουαρίου 2016 - 4:16:31 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > i want to using Paginator in my main page for my post list. i see docs and > examples for that but i thing my problem is a specific, because on my view > i

Re: django pagination

2016-01-26 Thread pa xapy
you want to paginate both querysets at the same page? i believe it's a pretty strange idea and if so, you should think how to refactor it if you want only paginate posts, i'll recommend you to use django-pagination app of some sort, it's can be used in template On Monday, January 25, 2016 at 5

django pagination

2016-01-25 Thread Xristos Xristoou
i want to using Paginator in my main page for my post list. i see docs and examples for that but i thing my problem is a specific, because on my view i have two Querys not one. def index(request): return render_to_response("blog/posts_list.html", { 'categories':

Re: how pass get parameter django bootstrap pagination

2015-03-06 Thread Collin Anderson
Hi, If you have the request context processor installed, you can do this: {% bootstrap_paginate object_list range=request.GET.range %} Collin On Thursday, March 5, 2015 at 4:35:33 AM UTC-5, SHINTO PETER wrote: > > {% load bootstrap_pagination %} > {% bootstrap_paginate object_list range=10

how pass get parameter django bootstrap pagination

2015-03-05 Thread SHINTO PETER
{% load bootstrap_pagination %} {% bootstrap_paginate object_list range=10 %} -- 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: How can I implement Ajax pagination without side modules like endless-pagination

2014-10-06 Thread Collin Anderson
copy/pasting from a recent website I worked on for an example... we actually just had a "load more" button without showing the total number of pages. Not saying you should do it this way, but it's one possible way. def listing(request): new_list = NewPost.objects.all() if

How can I implement Ajax pagination without side modules like endless-pagination

2014-10-06 Thread Artie
I need to make ajax pagination in my project and not allowed to use side modules like dajax or endless-pagination. Code in my views.py is following def listing(request): news_list = NewPost.objects.all() paginator = Paginator(news_list, 2) page = request.GET.get('page') try

problem with django daj pagination

2014-09-24 Thread Артём Мутерко
I'm trying to set up dajax pagination in py app. The problem is when I add import dajaxwebsite.examples.views to views.py My css stop working. Maybe I should use another ajax pagination plugin? like endless-pagination -- You received this message because you are subscribed to the Google Groups

Re: muliple pagination on same page

2014-08-27 Thread hardik sottany
Sir I will mail my appointment modal please give me a sample solution On Aug 27, 2014 8:36 PM, "Camilo Torres" wrote: > This is basically a DB query issue. Follow these general directions: > > 1. In your page add a form with a select with the filtering options. > 2. In

Re: muliple pagination on same page

2014-08-27 Thread Camilo Torres
This is basically a DB query issue. Follow these general directions: 1. In your page add a form with a select with the filtering options. 2. In your view, instead of getting all the instance of your model, filter by the selected option. -- You received this message because you are subscribed

Re: muliple pagination on same page

2014-08-25 Thread hardik sottany
I want to do pagination using filter on same page which show all on same page On Aug 25, 2014 7:26 PM, "Collin Anderson" <cmawebs...@gmail.com> wrote: > What do you have so far? > > -- > You received this message because you are subscribed to a topic in the > Goo

Re: muliple pagination on same page

2014-08-25 Thread hardik sottany
I have model with date time pk appointment details On Aug 25, 2014 7:26 PM, "Collin Anderson" wrote: > What do you have so far? > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this

Re: muliple pagination on same page

2014-08-25 Thread Collin Anderson
What do you have so far? -- 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 post to this group, send email to

muliple pagination on same page

2014-08-25 Thread hardik sottany
hello friend i want to use pagination for today appointment tommorows appoint and past appointment can any1 help me out in quite greater need -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Casting a raw query set as a list for pagination

2014-04-26 Thread Matt Buck
I've created a paginator for RawQuerySets. https://github.com/seamusmb/django-paginator-rawqueryset On Tuesday, March 26, 2013 5:51:41 AM UTC-4, chambe...@gmail.com wrote: > > I'm trying to implement Django's built in pagination feature with a raw > query set. I've researched

Re: Django Pagination

2013-10-03 Thread Hélio Miranda
Thanks for the help guys, I managed to solve, so I did: * queryset = Player.objects.filter(name=namepost)* *paginator = Paginator(queryset, 2)* * * *try: * * page = int(request.POST.get('page','1')) * *except ValueError: * * page = 1 * *try:

Re: Django Pagination

2013-10-03 Thread Hélio Miranda
thus still giving the same error -- 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 post to this group, send email to

Re: Django Pagination

2013-10-03 Thread Roberto López López
On 10/03/2013 04:13 PM, Roberto López López wrote: > *return HttpResponse(json.dumps([players]) , > content_type='application/json')* better without the square brackets *return HttpResponse(json.dumps(players) , content_type='application/json')* -- Roberto López López System Developer

Re: Django Pagination

2013-10-03 Thread Hélio Miranda
doing so: *queryset = Player.objects.filter(name=namepost)* *paginator = Paginator(queryset, 2)* * * *page = request.GET.get('page')* *try:* *players = paginator.page(page)* *except PageNotAnInteger:* *players = paginator.page(1)* *

Re: Django Pagination

2013-10-03 Thread Roberto López López
Try this (I have not tried the code myself, but I think that it should work): *queryset = Player.objects.filter(name=namepost)* *paginator = Paginator(queryset, 2) page = request.GET.get('page') try: players = paginator.page(page) except

Re: Django Pagination

2013-10-03 Thread Roberto López López
Better to say: *queryset = Player.objects.filter(name=namepost)* *paginator = Paginator(queryset, 2) page = request.GET.get('page') try: players = paginator.page(page) except PageNotAnInteger: players = paginator.page(1)

Re: Django Pagination

2013-10-03 Thread Hélio Miranda
Already got it, I did so: *queryset = Player.objects.filter(name=namepost)* *paginator = Paginator(queryset, 2)* *return HttpResponse(json.dumps([item.get_json() for item in paginator.object_list]) , content_type='application/json')* But I return all the records ... I should not

Re: Django Pagination

2013-10-03 Thread Hélio Miranda
Already got it, I did so: *queryset = Player.objects.filter(name=namepost)* *paginator = Paginator(queryset, 1)* *return HttpResponse(json.dumps([item.get_json() for item in paginator.object_list]) , content_type='application/json')* But I return all the records ... I should not

Re: Django Pagination

2013-10-03 Thread Hélio Miranda
I'm doing this: *queryset = Player.objects.filter(name=namepost)* *paginator = Paginator(queryset, 20)* *return json.dumps([item.get_json() for item in paginator.object_list])* And my Document is thus: http://plnkr.co/edit/FHH2hZh26OiLMKTk2ToO But it gives me the following error:

Re: Django Pagination

2013-10-03 Thread Tom Christie
Hi Hélio, It looks like you're applying pagination to the rendered JSON string itself. You want to be paginating the queryset itself. queryset = Player.objects.filter(name=namepost) paginator = Paginator(queryset, 20) return json.dumps([item.to_dict() for item

  1   2   3   4   >