Use previous requested data in the new request

2021-11-30 Thread kayhan
Hi How to first send some data with an Ajax request to Django view and then with a post request, send the form information to the same view and use the data sent in the previous request (Ajax request) in the second request ? def planing(request): if request.is_ajax(): #

Re: Use previous requested data in the new request

2021-12-01 Thread Lalit Suthar
why can't we make a post request directly On Wed, 1 Dec 2021 at 00:24, kayhan wrote: > Hi > How to first send some data with an Ajax request to Django view and then > with a post request, send the form information to the same view and use the > data sent in the previous request (Ajax request) in

Re: Use previous requested data in the new request

2021-12-02 Thread kayhan
Because first the site user allows us to access their location information. And then we use JavaScript code to get his location and send it to Django. The user then fills out another form and sends it to Django. When this form is submitted, we use the information in this form and the location infor