Python rest_framework.authtoken.views.ObtainAuthToken() Examples
The following are 2
code examples of rest_framework.authtoken.views.ObtainAuthToken().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
rest_framework.authtoken.views
, or try the search function
.
Example #1
Source File: views.py From byob-profiles-rest-api-docker with MIT License | 5 votes |
def create(self, request): """Use the ObtainAuthToken APIView to validate and create a token.""" return ObtainAuthToken().post(request)
Example #2
Source File: views.py From byob-profiles-rest-api with MIT License | 5 votes |
def create(self, request): """Use the ObtainAuthToken APIView to validate and create a token.""" return ObtainAuthToken().post(request)