-
Book Overview & Buying
-
Table Of Contents
Web Development with Django Cookbook - Second Edition
By :
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.
First of all, install Django REST Framework and its optional dependencies in your virtual environment using the following commands:
(myproject_env)$ pip install djangorestframework (myproject_env)$ pip install markdown (myproject_env)$ pip install django-filter
Add rest_framework to INSTALLED_APPS in the settings. Then, enhance the bulletin_board app that we defined...
Change the font size
Change margin width
Change background colour