Question

I simply want to show off a model in a table that is paginated and sortable on the various fields. Bonus points if the pagination and sorting doesn't cause a page reload. Double bonus points if the pagination is done with infinite scrolling.

I'm sure everyone here has written and rewritten this functionality.

Is there a simple middleware/template/project/something that I can drop into my django project and it 'will-just-work'?

Was it helpful?

Solution

If you like jQuery, this post has a neat solution for Django+Ajax pagination (doesn't directly implement sorting though).

OTHER TIPS

On the datatables.net plugin site, a full demo example is available on the server side with a datatable feeded with JSON type data : http://www.datatables.net/development/server-side/django

GitHub seems sluggish at the moment, but you may also want to check out django-sorting.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top