django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

api endpoint does not display properly

Open jian-en opened this issue 8 years ago • 1 comments

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!

jian-en avatar Jul 06 '16 11:07 jian-en

i have had a similar issue, check my PR #107 it should fix the problem.

rettier avatar Jul 12 '16 07:07 rettier