add allowed hosts
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K
2024-02-01 22:46:23 +01:00
parent ad3d470195
commit 14ac6229d3
2 changed files with 6 additions and 4 deletions

View File

@@ -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")