Click here to Skip to main content
15,900,629 members

Comments by Member 14108446 (Top 1 by date)

Member 14108446 5-Jan-19 7:39am View    
Hi, sorry, it is a wrong formulation. The code itself works in the shell, but does not do what I want. I have a model Skola in Django and two empty objects lat, lon. So basically I wanted the new values to be generated from google API and attached to the django model. This code I have returns only one value and even though I am using save() it does not seem to be saved. I was wondering if there are any special django functions to iterate through django model taking each object one by one and attach new values to the existing model
In addition in Django I have an sql database attached, I do not use jason file there.