Update authentication.md (#6291)

This commit is contained in:
ilmucio 2018-10-29 23:43:06 +01:00 committed by Ryan P Kilby
parent 67e99a29b8
commit 40da2a21ef

View File

@ -137,7 +137,7 @@ You'll also need to create tokens for your users.
from rest_framework.authtoken.models import Token
token = Token.objects.create(user=...)
print token.key
print(token.key)
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: