From d59a130168858afe58d6db26f76f7cfe8ccb42a7 Mon Sep 17 00:00:00 2001 From: Tom Snee <351700+tsnee@users.noreply.github.com> Date: Fri, 2 Nov 2018 11:48:39 -0400 Subject: [PATCH] Fixes an import statement in chapter 5 of the tutorial. (#6267) --- docs/tutorial/5-relationships-and-hyperlinked-apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/5-relationships-and-hyperlinked-apis.md b/docs/tutorial/5-relationships-and-hyperlinked-apis.md index ae24ffeb8..0177afce1 100644 --- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md +++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md @@ -106,7 +106,7 @@ If we're going to have a hyperlinked API, we need to make sure we name our URL p After adding all those names into our URLconf, our final `snippets/urls.py` file should look like this: - from django.conf.urls import url, include + from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from snippets import views