Skip to content

Commit 1fb1b88

Browse files
committed
Merge pull request #180 from monomaniar/master
Miss import django.HttpResponse.
2 parents dea3d72 + 6d327d4 commit 1fb1b88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/tutorial/tutorial_02.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ your `views.py` module and import the view:
1919
.. code-block:: python
2020
2121
from oauth2_provider.views.generic import ProtectedResourceView
22+
from django.http import HttpResponse
2223
2324
Then create the view which will respond to the API endpoint:
2425

@@ -61,4 +62,4 @@ Try performing a request and check that your :term:`Resource Server` aka :term:`
6162
an HTTP 200.
6263

6364
:doc:`Part 3 of the tutorial <tutorial_03>` will show how to use an access token to authenticate
64-
users.
65+
users.

0 commit comments

Comments
 (0)