Re: Converting requests

2019-11-08 Thread Kasper Laudrup
Hi Suraj, On 08/11/2019 13.19, Suraj Thapa FC wrote: I'm integrating the payment gateway in a website... They provided the documentation in python... All I have to do is make a post request to that url with the given data... Do you have any questions or do you just feel like sharing what yo

Re: Converting requests

2019-11-08 Thread Suraj Thapa FC
I'm integrating the payment gateway in a website... They provided the documentation in python... All I have to do is make a post request to that url with the given data... On Fri, 8 Nov 2019, 5:02 pm Kasper Laudrup, wrote: > Hi Suraj, > > On 08/11/2019 12.06, Suraj Thapa FC wrote: > > Actually

Re: Converting requests

2019-11-08 Thread Kasper Laudrup
Hi Suraj, On 08/11/2019 12.06, Suraj Thapa FC wrote: Actually i want to made a post request to the url with post_data OK, so you want to do something completely different than what you wrote originally? Thankfully, the line of code you shared does exactly that assuming you are using the r

Re: Converting requests

2019-11-08 Thread Suraj Thapa FC
Actually i want to made a post request to the url with post_data On Fri, 8 Nov 2019, 2:27 pm Kasper Laudrup, wrote: > Hi Suraj, > > On 08/11/2019 08.26, Suraj Thapa FC wrote: > > How do I convert the requests into render or redirect > > > > response = requests.post(url,data=post_data, header

Re: Converting requests

2019-11-08 Thread Kasper Laudrup
Hi Suraj, On 08/11/2019 08.26, Suraj Thapa FC wrote: How do I convert the requests into render or redirect response = requests.post(url,data=post_data, headers={"Content-type" :"application/json" }).json() You question doesn't make much sense since you don't write what you want to ach

Converting requests

2019-11-07 Thread Suraj Thapa FC
How do I convert the requests into render or redirect response = requests.post(url,data=post_data, headers={"Content-type" :"application/json" }).json() -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop