Skip to content

Commit 40da2a2

Browse files
ilmuciorpkilby
authored andcommitted
Update authentication.md (#6291)
1 parent 67e99a2 commit 40da2a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ You'll also need to create tokens for your users.
137137
from rest_framework.authtoken.models import Token
138138

139139
token = Token.objects.create(user=...)
140-
print token.key
140+
print(token.key)
141141

142142
For clients to authenticate, the token key should be included in the `Authorization` HTTP header. The key should be prefixed by the string literal "Token", with whitespace separating the two strings. For example:
143143

0 commit comments

Comments
 (0)