8000 Merge pull request #1077 from tom-leys/patch-2 · alumni/django-rest-framework@ec689c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ec689c1

Browse files
committed
Merge pull request encode#1077 from tom-leys/patch-2
Updated tutorial part 6: 2 examples were missing includes
2 parents f810111 + 85ab879 commit ec689c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/tutorial/6-viewsets-and-routers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ To see what's going on under the hood let's first explicitly create a set of vie
6161
In the `urls.py` file we bind our `ViewSet` classes into a set of concrete views.
6262

6363
from snippets.views import SnippetViewSet, UserViewSet
64+
from rest_framework import renderers
6465

6566
snippet_list = SnippetViewSet.as_view({
6667
'get': 'list',
@@ -101,6 +102,7 @@ Because we're using `ViewSet` classes rather than `View` classes, we actually do
101102

102103
Here's our re-wired `urls.py` file.
103104

105+
from django.conf.urls import patterns, url, include
104106
from snippets import views
105107
from rest_framework.routers import DefaultRouter
106108

0 commit comments

Comments
 (0)
0