So i have two very similar endpoint URLs:
url(r'^users/(?P<username>.+)/$', user_detail, name='user_detail'), url(r'^users/(?P<username>.+)/followers/$', follow_view, name='follow'), In that order, i get a HTTP 405 (Method Not Allowed), but when the order is changed (/followers on top) i dont get the error, but i get it now in the second endpoint.
The respective api_views have the respective allowed method list, for example:
@api_view(['POST', 'GET', 'DELETE']) @authentication_classes((BasicAuthentication,)) @permission_classes((IsAuthenticated,)) def follow_view(request, username, format=None): What can i do to make this URL Conf work? Thanks!