3👍
✅
You don’t create urls like that. ApiView is a class, you need to use the as_view
classmethod and refer to the class directly, not as a string:
url(r'^api/', api.views.ExpeViewSet.as_view()),
Source:stackexchange.com