Re: Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
Thanks James for your suggestion. So according to you, I must use the domain name and not the IP address anymore in my request. Thanks again. On Friday, November 10, 2017 at 11:09:59 PM UTC+5:30, James Schneider wrote: > > > > On Nov 10, 2017 3:45 AM, "Rahul Paul" > &

Re: Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
In some place I wrote that "However the very same API is returning proper result with both --- IP address and domain name". I would like to correct hat this scenario is working when I am hitting the API from POSTMAN. On Friday, November 10, 2017 at 5:15:20 PM UTC+5:30, Rahul Paul wro

Django raising error - hostname doesnot match.

2017-11-10 Thread Rahul Paul
Hi, I am using requests package to send a post request to an API within my application. I am using the request as : *requests.post("https://xx.xxx.xxx.xxx/my-admin/api/api2";, data=data)* where "xx.xxx.xxx.xxx" is the IP of my server on which this API is hosted. When I am trying to call thi

Restricting the user from closing the browser tab so that the server side APIs are called.

2017-05-31 Thread Rahul Paul
Hi, We are working on a django project in which we are developing a two way audio visual solution for the users. Now we have certain set of APIs that need to be called from JavaScript through ajax request when user ends the call through our end-call button. Some of these ajax calls are sequenti