You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: docs/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,12 +72,12 @@ In your `urls.py` add the following URL route to enable obtaining a token via a
72
72
from rest_framework_jwt.views import obtain_jwt_token
73
73
#...
74
74
75
-
urlpatterns =patterns(
75
+
urlpatterns =[
76
76
'',
77
77
# ...
78
78
79
79
url(r'^api-token-auth/', obtain_jwt_token),
80
-
)
80
+
]
81
81
```
82
82
83
83
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