Closed clime closed 11 years ago
location field in my db is a PointField that stores coordinates (lng, lat) of a point.
on your django model which contains the PointField, have you added
objects = models.GeoManager()
?
so it looks something like this:
class GEODJANGO_MODEL(models.Model):
location = models.PointField(srid=4326)
objects = models.GeoManager()
Ah, you are right. Forgot that. Thank you!
I am getting this exception:
at this point:
Here are local vars at that point (idk if useful):