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

Commit c3e7455

Browse files
committed
Update index.md
1 parent 9a68f68 commit c3e7455

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,14 @@ REST_FRAMEWORK = {
5959
In your `urls.py` add the following URL route to enable obtaining a token via a POST included the user's username and password.
6060

6161
```python
62+
from rest_framework_jwt.views import obtain_jwt_token
63+
#...
64+
6265
urlpatterns = patterns(
6366
'',
6467
# ...
6568

66-
url(r'^api-token-auth/', 'rest_framework_jwt.views.obtain_jwt_token'),
69+
url(r'^api-token-auth/', obtain_jwt_token),
6770
)
6871
```
6972

0 commit comments

Comments
 (0)