This commit is contained in:
@@ -111,6 +111,8 @@ class GetAuthTokenView(APIView):
|
||||
}
|
||||
print(headers)
|
||||
print("DATA READY")
|
||||
response = requests.post('http://localhost:8000/o/token/', headers=headers, data=data)
|
||||
print(response.text)
|
||||
return Response(response.json())
|
||||
try:
|
||||
response = requests.post('http://localhost:8000/o/token/', headers=headers, data=data)
|
||||
return Response(response.json())
|
||||
except:
|
||||
print("ERROR")
|
||||
Reference in New Issue
Block a user