Hai
I think you have to return jsonresponse in views Inorder to do it turn it
data into json using json package and it has a method like dumps or loads
and return data
On Sat 11 May, 2019, 7:58 AM Samaresh Singh, wrote:
> I can print the prod_name inside the views.py but cannot pass that
> prod_
In views return as Jsonresponse
return JsonResponse(context_dict,safe=False)
And in template
You can log into success of ajax. And if it is still not working I will
show you an example code.
On Sat, 11 May 2019 at 7:58 AM, Samaresh Singh wrote:
> I can print the prod_name inside the views.py but
I can print the prod_name inside the views.py but cannot pass that
prod_name to the form page of selected product text filed. Main goal is to
throw the dropdown value received from form page to views.py and send the
same back to the form page from views.py. Hence I will be able to see the
changing
Hey,
Try to print the prod_name in viewsand if it is undefined or null try using
post instead of get.
Thanks and Regards,
Najmath Ummer
Perleybrook Labs LLC
Mob:8075314478
On Fri, 10 May 2019 at 02:04, Samaresh Singh wrote:
> Hi All,
>
> I am working on internal django project where, i select
Hi All,
I am working on internal django project where, i select the option from
dropdown in the form page and pass that value to the views.py using AJAX.
in views.py i use the text from dropdown and want to throw the text into
same form pages text field but that does not work. When i try to pas
5 matches
Mail list logo