Backbone with Tastypie – pagination, server-side filtering and sorting


I’m a big fan of Tastypie. It gives the ability to quickly set up a restful api and focus on real development work rather than typing code all night long. So the choice was obvious when I needed REST backend for my Backbone based frontend that I’m going to use Tastypie for Django. There were already existing libraries and the best matches my requirements was this: However this didn’t support some essential feature for me like easy built-in pagination, server-side filtering and sorting. Since dataset can be quite big I don’t want to retrieve all data all the time and sort, filter on client side. That would beat the purpose of a Django + MySQL backend anyway.

So I forked the repo and added what I needed:

About charlesnagy

I'm out of many things mostly automation expert, database specialist, system engineer and software architect with passion towards data, searching it, analyze it, learn from it. I learn by experimenting and this blog is a result of these experiments and some other random thought I have time to time.
Bookmark the permalink.