Hi I have a Django model as follows:
class Address(models.Model): geoCoords = models.PointField(null=True, blank=True,)
Now I create an instance of this model:
A = Address()
How to set the coordinates of the GeoCoord field in (5.3, 6.2)? I cannot find any example of where this is assigned a point field. This is such a stupidly simple question. In fact, the coordinates that I would like to assign to A.geoCord are pygeocoder. This is a 2-element tuple of floats.
The Django PointFields documentation is mostly non-existent .
python django geodjango
Saqib ali
source share