Geo problem. TypeError: get_distance() got an unexpected keyword argument 'handle_spheroid'

27 views
Skip to first unread message

王祥

unread,
Dec 18, 2017, 4:34:26 AM12/18/17
to Django users
I'm using django gis app. My model is like this:
And the command
MyPoint3.objects.filter(point__distance_lt=(Point(0,0), 4))
runs successfully in django 2.0 version, but it fails running in django v1.11.
The trace_back info is like this:

How can I fix the problem? Thank you for your attention.
You can see the whole demo project and code in this repository.

Etienne Robillard

unread,
Dec 18, 2017, 6:06:21 AM12/18/17
to django...@googlegroups.com

Hi 王祥,

Check out this: https://code.djangoproject.com/ticket/25524

HTH

Etienne

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d90a2f6d-3a98-4ebb-9603-2535127f0698%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Etienne Robillard
tka...@yandex.com
https://www.isotopesoftware.ca/
Reply all
Reply to author
Forward
0 new messages