GeoIP module unnecessarily requires GDAL
|Ready for checkin
|Patch needs improvement:
The commit https://github.com/django/django/commit/31bef51d8ea5e3bf650de1495ae1f0566670b8f3 (in versions 4.1a1 forward) moved the import of
django.contrib.gis.geos.Point from the
def geos() function to top-level, with the unfortunate side-effect that importing the
GeoIP module now requires working GDAL libraries.
The GeoIP module should be usable without GDAL; naturally, returning a GDAL geometry would require GDAL.
My suggested fix would be to revert the above commit; a late import should be fine here.