O'Reilly logo

Web Development with Django Cookbook - Second Edition by Aidas Bendoraitis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Django REST framework to create API

Besides Tastypie, there is a newer and fresher framework to create API for your data transfers to and from third parties. That's Django REST Framework. This framework has more extensive documentation and Django-ish implementation, it is also more maintainable. Therefore, if you have to choose between Tastypie or Django REST Framework, I would recommend the latter one. In this recipe, you will learn how to use Django REST Framework in order to allow your project partners, mobile clients, or Ajax-based website to access data on your site to create, read, update, and delete.

Getting ready

First of all, install Django REST Framework and its optional dependencies in your virtual environment using the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required