Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Update documentation #435

Open
joeyworld opened this issue Apr 16, 2018 · 1 comment
Open

Update documentation #435

joeyworld opened this issue Apr 16, 2018 · 1 comment

Comments

@joeyworld
Copy link

In Usage paragraph, there exists:

In your urls.py add the following URL route to enable obtaining a token via a POST included the user's username and password.
from rest_framework_jwt.views import obtain_jwt_token
#...

urlpatterns = [
    '',
    # ...

    url(r'^api-token-auth/', obtain_jwt_token),
]

I think fixing urlpatterns in django 2.0 way, using path or re-path would be better.

@joeyworld
Copy link
Author

If compatible with 2.0, I can work on with it and send a PR

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

No branches or pull requests

1 participant