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

Intro

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: https://github.com/PaulUithol/backbone-tastypie 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: https://github.com/charlesnagy/backbone-tastypie