jpadilla / django-rest-framework-jwt

JSON Web Token Authentication support for Django REST Framework
http://jpadilla.github.io/django-rest-framework-jwt/
MIT License
3.19k stars 650 forks source link

Update documentation #435

Open joeyworld opened 6 years ago

joeyworld commented 6 years ago

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 commented 6 years ago

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