0% found this document useful (0 votes)
4 views

3. Introduction to Django REST Framework

Django REST Framework is a versatile toolkit for creating Web APIs, featuring a browsable API, various authentication policies, and serialization support for different data sources. It requires Python and Django, with optional packages for enhanced functionality. Installation and uninstallation can be easily performed using pip, and it is widely used by reputable companies.

Uploaded by

sohel kazi
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

3. Introduction to Django REST Framework

Django REST Framework is a versatile toolkit for creating Web APIs, featuring a browsable API, various authentication policies, and serialization support for different data sources. It requires Python and Django, with optional packages for enhanced functionality. Installation and uninstallation can be easily performed using pip, and it is widely used by reputable companies.

Uploaded by

sohel kazi
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Django REST Framework

Django REST framework is a powerful and flexible toolkit for building Web APIs.

• The Web browsable API is a huge usability win for your developers.
• Authentication policies including packages for OAuth1 and OAuth2.
• Serialization that supports both ORM and non-ORM data sources.
• Customizable all the way down - just use regular function-based views if you don't
need the more powerful features.
• Extensive documentation, and great community support.
• Used and trusted by internationally recognized companies including Mozilla, Red
Hat, Heroku, and Eventbrite.
Requirements
• Python
• Django

The following packages are optional:


• PyYAML, uritemplate (5.1+, 3.0.0+) - Schema generation support.
• Markdown (3.0.0+) - Markdown support for the browsable API.
• Pygments (2.4.0+) - Add syntax highlighting to Markdown processing.
• django-filter (1.0.1+) - Filtering support.
• django-guardian (1.1.1+) - Object level permissions support.
How to Install/Uninstall DRF
• Install using pip
pip install djangorestframework

• Uninstall using pip


pip uninstall djangorestframework
Installing DRF to Django Project
INSTALLED_APPS = [
...
'rest_framework',
]
URL to use Browsable API
urlpatterns = [
...
path(api-auth/, include('rest_framework.urls'))
]

You might also like