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.
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