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

Commit 9b7b55d

Browse files
committed
Stop using patterns()
1 parent f979d6a commit 9b7b55d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ In your `urls.py` add the following URL route to enable obtaining a token via a
7272
from rest_framework_jwt.views import obtain_jwt_token
7373
#...
7474

75-
urlpatterns = patterns(
75+
urlpatterns = [
7676
'',
7777
# ...
7878

7979
url(r'^api-token-auth/', obtain_jwt_token),
80-
)
80+
]
8181
```
8282

8383
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**.

0 commit comments

Comments
 (0)