Note: This is version 3 documentation.
Documentation for version 2 is also provided.
Django REST framework is a powerful and flexible toolkit for building Web APIs.
Why use REST framework?
REST framework is a collaboratively funded project. If you use REST framework commercially we strongly encourage you to invest in its continued development
) by signing up for a paid plan .(Registration paid plan) Every single sign-up helps us make REST framework long-term financially sustainable(Financially sustainable development) Many thanks to all our
A huge thank you to all our wonderful sponsors, and in particular to our premium backers, Rover, Sentry, Stream, Machinalis, and Rollbar.
Rover, Sentry, Stream, Machinalis, and Rollbar.) REST framework has the following requirements: Python (2.7, 3.2, 3.3, 3.4, 3.5, 3.6) Django (1.7+, 1.8, 1.9,,2.0) The following are optional
Packages: Install using pip, including any optional packages you want... (install using pip, including any optional packages you want...) ...or clone the project from github. (or clone the project from GitHub)
Add 'rest_framework' to your INSTALLED_APPS setting. If you're intending to use the browsable API you'll probably also want to add REST framework's login and logout views. Add the following to your root urls.py file.
Browsable API, you may also want to add login and logout views for the REST framework.
Add the following content to your root urls.py file.
) Note that the URL path can be whatever you want. (Note that the URL path can be whatever you want.) Let's take a look at a quick example of using REST framework to build a simple model-backed API.
Check out a quick example of using the REST framework to build a simple model-backed API.