[PYTHON] Django rest framework decorators ʻaction decorator replaces list_route and detail_route`

background

Support for Django 1.11.1 will expire in April, so I'm updating to Django 2.2. With the Django update, the restframework version has also been upgraded from 3.6.3 to 3.8.2. Then there is a horizontal bar like this in api.py of PyCharm.

from rest_framework.decorators import ~~detail_route~~, ~~list_route~~

However, the routing is done normally.

Verification

It was announced on the following page. https://www.django-rest-framework.org/community/3.8-announcement/

Both list_route and detail_route are now pending deprecation. 
They will be deprecated in 3.9 and removed entirely in 3.10.

Well, version 3.8.2 hasn't been completely abolished yet.

Recommended Posts

Django rest framework decorators ʻaction decorator replaces list_route and detail_route`
Django REST framework basics
Django Rest Framework Tips
Django REST framework stumbling block
Django REST framework with Vue.js
Login with django rest framework
[Django] Use MessagePack with Django REST framework
Create RESTful APIs with Django Rest Framework
Logical deletion in Django, DRF (Django REST Framework)
ng-admin + Django REST framework ready-to-create administration tool
CRUD GET with Nuxt & Django REST Framework ②
Miscellaneous notes about the Django REST framework
CRUD POST with Nuxt & Django REST Framework
CRUD GET with Nuxt & Django REST Framework ①
Django REST Framework + Clean Architecture Design Consideration