my drf project layout: project: - urls.py api: - urls.py In project/urls.py I defined the url routing like: urlpatterns = [url(r'^api/', include('api.urls', namespace='api')), url(r'^api-token-auth/', views.obtain_token),] on the drf web page, it gives me api/api-token-auth as the endpoint but it should be api-token-auth/. Hope this issue can be quickly fixed. thanks!