From 5ebf6f22a9b09ee106ae30b97c27b88d156216fa Mon Sep 17 00:00:00 2001 From: ilmucio <34142385+ilmucio@users.noreply.github.com> Date: Mon, 29 Oct 2018 21:33:48 +0100 Subject: [PATCH] Update authentication.md --- 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: