So i am trying to send a JSON file to a rest API endpoint and i am trying to use the requests library and it doesn\'t work. Also in the function i have a return render to anothe