[Django]-DRF TypeError __init__() takes exactly 1 argument (2 given)

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()),

Leave a comment