Skip to content

Commit ddc5cd7

Browse files
authored
Imported Response (encode#8207)
1 parent 53a0585 commit ddc5cd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/api-guide/views.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ REST framework also allows you to work with regular function based views. It pr
145145
The core of this functionality is the `api_view` decorator, which takes a list of HTTP methods that your view should respond to. For example, this is how you would write a very simple view that just manually returns some data:
146146

147147
from rest_framework.decorators import api_view
148+
from rest_framework.response import Response
148149

149150
@api_view()
150151
def hello_world(request):

0 commit comments

Comments
 (0)