This commit is contained in:
parent
14ac6229d3
commit
4c6638bb18
@ -111,8 +111,13 @@ class GetAuthTokenView(APIView):
|
|||||||
}
|
}
|
||||||
print(headers)
|
print(headers)
|
||||||
print("DATA READY")
|
print("DATA READY")
|
||||||
|
proxies = {
|
||||||
|
"http": "http://tinyproxy-svc:8888",}
|
||||||
try:
|
try:
|
||||||
response = requests.post('http://localhost:8000/o/token/', headers=headers, data=data)
|
response = requests.post('http://izaac.izaac.pl/o/token/',
|
||||||
|
headers=headers,
|
||||||
|
data=data,
|
||||||
|
proxies=proxies)
|
||||||
return Response(response.json())
|
return Response(response.json())
|
||||||
except:
|
except:
|
||||||
print("ERROR")
|
print("ERROR")
|
||||||
Loading…
x
Reference in New Issue
Block a user