views:

918

answers:

3

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'?

+2  A: 

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

Alex Martelli
link is dead unfortunately ...
Titusz
Alex Martelli
+1  A: 

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

Vinay Sajip
Project moved: http://github.com/directeur/django-sorting
Török Gábor
A: 

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

djondal