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():
#
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
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
3 matches
Mail list logo