From 40da2a21ef08f9394eb03d018d560516f940a1b2 Mon Sep 17 00:00:00 2001 From: ilmucio <34142385+ilmucio@users.noreply.github.com> Date: Mon, 29 Oct 2018 23:43:06 +0100 Subject: [PATCH] Update authentication.md (#6291) --- docs/api-guide/authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index 139458ad4..0776b6340 100644 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -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: