From 1d0338cff1e5e5ca6beb2e96c8f7d789ff83b921 Mon Sep 17 00:00:00 2001 From: Chris Shyi Date: Thu, 21 Jun 2018 19:09:09 -0400 Subject: [PATCH] Fix import in code example Fixed the import statement in tutorial part 6 for the path() and include() functions. --- docs/tutorial/6-viewsets-and-routers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/6-viewsets-and-routers.md b/docs/tutorial/6-viewsets-and-routers.md index d5ec66004..1d4058813 100644 --- a/docs/tutorial/6-viewsets-and-routers.md +++ b/docs/tutorial/6-viewsets-and-routers.md @@ -105,7 +105,7 @@ Because we're using `ViewSet` classes rather than `View` classes, we actually do Here's our re-wired `snippets/urls.py` file. - from django.conf.urls import url, include + from django.urls import path, include from rest_framework.routers import DefaultRouter from snippets import views