mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Update authentication.md
This commit is contained in:
parent
51b1dc1e42
commit
8aef7500e7
|
@ -44,7 +44,7 @@ The default authentication schemes may be set globally, using the `DEFAULT_AUTHE
|
||||||
}
|
}
|
||||||
|
|
||||||
You can also set the authentication scheme on a per-view or per-viewset basis,
|
You can also set the authentication scheme on a per-view or per-viewset basis,
|
||||||
using the `APIView` class based views.
|
using the `APIView` class-based views.
|
||||||
|
|
||||||
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
|
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
|
||||||
from rest_framework.permissions import IsAuthenticated
|
from rest_framework.permissions import IsAuthenticated
|
||||||
|
|
Loading…
Reference in New Issue
Block a user