1
The list_route
decorator is present in version 3.1.3.
See: https://github.com/tomchristie/django-rest-framework/blob/3.1.3/rest_framework/decorators.py
Follow the instructions on https://github.com/tomchristie/django-rest-framework to install Django REST Framework properly.
To install version 3.1.3, run: pip install djangorestframework==3.1.3
9
When upgrading to higher versions, you might hit this question again.
list_route
has been deprecated in favor of @action(detail=False)
More info in the release 3.8 announcement
- [Django]-Can I do Django & Python web development using Xcode 3.2?
- [Django]-Django session lost when redirected from facebook oauth
Source:stackexchange.com