From abb024138065549ea5668f69038f9bc94ce6b50b Mon Sep 17 00:00:00 2001 From: zachvalenta Date: Sat, 12 May 2018 14:46:57 -0400 Subject: [PATCH] fix import in views.py --- docs/tutorial/1-serialization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index a87c7ec21..28fd6b324 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -220,8 +220,8 @@ Edit the `snippets/views.py` file, and add the following. from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser - from snippets.models import Snippet - from snippets.serializers import SnippetSerializer + from .models import Snippet + from .serializers import SnippetSerializer The root of our API is going to be a view that supports listing all the existing snippets, or creating a new snippet.