All posts tagged Tastypie

Backbone.js and Django

I’ve been using backbone.js recently, mostly with node.js, or with the localstore bundled with the example Todo application for quick prototypes. However, I wanted to integrate it within some existing Django applications, but had some trouble.

Since Backbone assumes a REST architecture, I needed some way to expose my Django models. For this, I went with Tastypie, which is the easiest way I’ve found to write a RESTful API for your app.

I’ve put together a sample application using Backbone… Read the rest