How to pass variables to update form in templates.

2019-05-04 Thread sairanganadh Narayana
I have integrated an api. I wrote add functionality by using simple form and saving the details and effecting on api. But, while writing update functionality, there is requirement to send data from views file to templates. Because, I didn't use any models. How to pass data to templates from

Re: How to run ORM commands from DOM Javascript?

2019-04-15 Thread sairanganadh Narayana
return HttpResponse(this_answer, > content_type='application/json') > > hope this helps! > > Den tis 9 apr. 2019 kl 13:30 skrev sairanganadh Narayana < > ssaai...@gmail.com >: > >> I'm trying to get run model.objects.filter(id=2) from javascript an

How to run ORM commands in Javascript DOM?

2019-04-09 Thread sairanganadh Narayana
I am trying to run model.objects.filter(id=2) through javascript and show results in popup. I am unable to find the solution. Please guide me with solution or any alternative to get this. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django

How to run ORM commands from DOM Javascript?

2019-04-09 Thread sairanganadh Narayana
I'm trying to get run model.objects.filter(id=2) from javascript and show on database. I am unable to get solution for this. Please guide me solution for this or alternative for this. -- You received this message because you are subscribed to the Google Groups "Django users" group. To