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

Commit

Permalink
Stop using patterns()
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Dec 1, 2016
1 parent f979d6a commit 9b7b55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ In your `urls.py` add the following URL route to enable obtaining a token via a
from rest_framework_jwt.views import obtain_jwt_token
#...

urlpatterns = patterns(
urlpatterns = [
'',
# ...

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

You can easily test if the endpoint is working by doing the following in your terminal, if you had a user created with the username **admin** and password **password123**.
Expand Down

0 comments on commit 9b7b55d

Please sign in to comment.