install restframework code example
Example 1: install rest framework
pip install djangorestframework
pip install markdown # Markdown support for the browsable API.
pip install django-filter # Filtering support
Example 2: install rest framework
urlpatterns = [
...
path('api-auth/', include('rest_framework.urls'))
]