You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
detail_route decorator was merged into action since DRF 3.8, so the line from rest_framework.decorators import detail_route causes ImportError and the app wont start:
ImportError: cannot import name 'detail_route' from 'rest_framework.decorators'
detail_route
decorator was merged intoaction
since DRF 3.8, so the linefrom rest_framework.decorators import detail_route
causes ImportError and the app wont start:ImportError: cannot import name 'detail_route' from 'rest_framework.decorators'
Docs:
https://www.django-rest-framework.org/community/3.8-announcement/#action-decorator-replaces-list_route-and-detail_route
The text was updated successfully, but these errors were encountered: