Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api endpoint does not display properly #109

Open
jian-en opened this issue Jul 6, 2016 · 1 comment
Open

api endpoint does not display properly #109

jian-en opened this issue Jul 6, 2016 · 1 comment

Comments

@jian-en
Copy link

jian-en commented Jul 6, 2016

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!

@rettier
Copy link

rettier commented Jul 12, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants