mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-09 08:00:52 +03:00
Added missing import in tutorial snippet
This commit is contained in:
parent
5cad60dc4f
commit
918b9cc6a6
|
@ -60,7 +60,7 @@ To see what's going on under the hood let's first explicitly create a set of vie
|
||||||
|
|
||||||
In the `urls.py` file we bind our `ViewSet` classes into a set of concrete views.
|
In the `urls.py` file we bind our `ViewSet` classes into a set of concrete views.
|
||||||
|
|
||||||
from snippets.views import SnippetViewSet, UserViewSet
|
from snippets.views import SnippetViewSet, UserViewSet, api_root
|
||||||
from rest_framework import renderers
|
from rest_framework import renderers
|
||||||
|
|
||||||
snippet_list = SnippetViewSet.as_view({
|
snippet_list = SnippetViewSet.as_view({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user