mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 03:20:12 +03:00
fix import in views.py
This commit is contained in:
parent
fef4afdbf7
commit
abb0241380
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user