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 Tastypie to create API

Tastypie is a framework for Django to create web service Application Program Interface (API). It supports full GET/POST/PUT/DELETE/PATCH HTTP methods to deal with online resources. It also supports different types of authentication and authorization, serialization, caching, throttling, and so on. In this recipe, you will learn how to provide bulletins to third parties for reading, that is, we will implement only the GET HTTP method.

Getting ready

First of all, install Tastypie in your virtual environment using the following command:

(myproject_env)$ pip install django-tastypie

Add Tastypie to INSTALLED_APPS in the settings. Then, enhance the bulletin_board app that we defined in the Creating filterable RSS feeds recipe. ...

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