[Answered ]-Django model creating geography not geometry fields

2👍

Don’t really know, but some tips:

  1. You need to have PostGIS 1.5+ installed.

  2. Define field like this: maplocation = models.PointField(geography=True).

  3. Set model manager to django.contrib.gis.db.models.GeoManager (I think this is not required to use geography, but You will need it later to make queries).

Leave a comment