From 88c75ba808c5b0ac830efdf36117297e350f0925 Mon Sep 17 00:00:00 2001 From: guntanis Date: Thu, 28 Dec 2017 02:01:01 -0800 Subject: [PATCH] Fixed "typo" in example. Fixing code "typo" in example. In the original file, line 145 reads: url(r'^api-auth/', include('rest_framework.urls'), It's missing the closing parenthesis. --- docs/tutorial/4-authentication-and-permissions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md index 6e5b077ce..af9a7c0ff 100644 --- a/docs/tutorial/4-authentication-and-permissions.md +++ b/docs/tutorial/4-authentication-and-permissions.md @@ -142,7 +142,7 @@ Add the following import at the top of the file: And, at the end of the file, add a pattern to include the login and logout views for the browsable API. urlpatterns += [ - url(r'^api-auth/', include('rest_framework.urls'), + url(r'^api-auth/', include('rest_framework.urls')), ] The `r'^api-auth/'` part of pattern can actually be whatever URL you want to use.