Hello, everybody
I am using Django 2.1 with MariaDB 10.3.
I have been trying to get the 'dwithin' lookup to work on a PointField, but I keep getting the following error:
...
File "/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/models/lookups.py", line 74, in get_rhs_op
return connection.ops.gis_operators[self.lookup_name]
KeyError: 'dwithin'
Looking at the docs, I get conflicting info:
*
this section says "Availability: PostGIS, Oracle, SpatiaLite, PGRaster (Native)", implying 'not available on MySQL'
*
this other section says MySQL support was added on Django 2.0
I could switch to PostgreSQL as a last resort, but maybe I'm just forgetting some configuration? Are the distance lookups available for MySQL or not?
Best regards,
Clara