Re: [BangPypers] Django pagination
Hello @Numan Ashraf, yes I am using django_rest_framework to handle the REST, I was trying with Angular JS ng-repeat http://stackoverflow.com/questions/10816073/how-to-do-paging-in-angularjs @Ramdas, @Ragsagar, I'll django-endless-pagination. I was thinking using Angular js pagination was optimum! I'll try both approach for huge data, let me verify which one is optimum!. --- Regards, Shashidhar N.Paragonda shashidha...@gmail.com +919900093835 On Mon, Feb 16, 2015 at 7:38 PM, Numaan Ashraf numaan@gmail.com wrote: Are you using any frameworks to handle the REST backend like tastypie or django-rest-framework? On Mon, Feb 16, 2015 at 6:44 PM, Ramdas S ram...@gmail.com wrote: Would recommend Django Endless Pagination. It has a Jquery plugin which can easily be extended On Mon, Feb 16, 2015 at 4:44 PM, ragsagar ragsa...@gmail.com wrote: On Mon, Feb 16, 2015 at 11:26 AM, Gora Mohanty g...@mimirtech.com wrote: On 16 February 2015 at 12:42, Shashidhar Paragonda shashidha...@gmail.com wrote: hello hackers, I need help on implementing pagination for Restful responses in django, front hand I am using angular js. Basically I get customer details from rest request and I need to divide then by 25 per page with pagination how can I achieve this. No Db involved here. You can use django.core.paginator.Paginator. You can pass it the list of objects you want to paginate. If the front-end is in AngularJS, you should probably do the pagination there. The JSON sent to AngularJS can contain a list of the entities to be paginated. If the number of items is large, it is better to do the pagination in django itself, Since angular tends to become slow when rendering large number of items especially when using ng-render. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- blog : blog.ragsagar.in mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])]) ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Django pagination
Are you using any frameworks to handle the REST backend like tastypie or django-rest-framework? On Mon, Feb 16, 2015 at 6:44 PM, Ramdas S ram...@gmail.com wrote: Would recommend Django Endless Pagination. It has a Jquery plugin which can easily be extended On Mon, Feb 16, 2015 at 4:44 PM, ragsagar ragsa...@gmail.com wrote: On Mon, Feb 16, 2015 at 11:26 AM, Gora Mohanty g...@mimirtech.com wrote: On 16 February 2015 at 12:42, Shashidhar Paragonda shashidha...@gmail.com wrote: hello hackers, I need help on implementing pagination for Restful responses in django, front hand I am using angular js. Basically I get customer details from rest request and I need to divide then by 25 per page with pagination how can I achieve this. No Db involved here. You can use django.core.paginator.Paginator. You can pass it the list of objects you want to paginate. If the front-end is in AngularJS, you should probably do the pagination there. The JSON sent to AngularJS can contain a list of the entities to be paginated. If the number of items is large, it is better to do the pagination in django itself, Since angular tends to become slow when rendering large number of items especially when using ng-render. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- blog : blog.ragsagar.in mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])]) ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Django pagination
Would recommend Django Endless Pagination. It has a Jquery plugin which can easily be extended On Mon, Feb 16, 2015 at 4:44 PM, ragsagar ragsa...@gmail.com wrote: On Mon, Feb 16, 2015 at 11:26 AM, Gora Mohanty g...@mimirtech.com wrote: On 16 February 2015 at 12:42, Shashidhar Paragonda shashidha...@gmail.com wrote: hello hackers, I need help on implementing pagination for Restful responses in django, front hand I am using angular js. Basically I get customer details from rest request and I need to divide then by 25 per page with pagination how can I achieve this. No Db involved here. You can use django.core.paginator.Paginator. You can pass it the list of objects you want to paginate. If the front-end is in AngularJS, you should probably do the pagination there. The JSON sent to AngularJS can contain a list of the entities to be paginated. If the number of items is large, it is better to do the pagination in django itself, Since angular tends to become slow when rendering large number of items especially when using ng-render. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- blog : blog.ragsagar.in mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])]) ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Django pagination
On Mon, Feb 16, 2015 at 11:26 AM, Gora Mohanty g...@mimirtech.com wrote: On 16 February 2015 at 12:42, Shashidhar Paragonda shashidha...@gmail.com wrote: hello hackers, I need help on implementing pagination for Restful responses in django, front hand I am using angular js. Basically I get customer details from rest request and I need to divide then by 25 per page with pagination how can I achieve this. No Db involved here. You can use django.core.paginator.Paginator. You can pass it the list of objects you want to paginate. If the front-end is in AngularJS, you should probably do the pagination there. The JSON sent to AngularJS can contain a list of the entities to be paginated. If the number of items is large, it is better to do the pagination in django itself, Since angular tends to become slow when rendering large number of items especially when using ng-render. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- blog : blog.ragsagar.in mail id : python -c print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])]) ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Django pagination
On 16 February 2015 at 12:42, Shashidhar Paragonda shashidha...@gmail.com wrote: hello hackers, I need help on implementing pagination for Restful responses in django, front hand I am using angular js. Basically I get customer details from rest request and I need to divide then by 25 per page with pagination how can I achieve this. No Db involved here. If the front-end is in AngularJS, you should probably do the pagination there. The JSON sent to AngularJS can contain a list of the entities to be paginated. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers