Re: execute python through ajax

2016-03-09 Thread Jani Tiainen
On 09.03.2016 15:55, Florian Hoedt wrote: Hello Django users, I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. How would I achieve something like

Re: execute python through ajax

2016-03-09 Thread Bob Gailer
On Mar 9, 2016 9:22 AM, "Florian Hoedt" wrote: > > Hello Django users, > I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. > How would I

execute python through ajax

2016-03-09 Thread Florian Hoedt
Hello Django users, I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. How would I achieve something like this? I am trying to understand the forms section