Django - how can I find the distance between two locations?
问题 I have some users registered in my Django app and I want to simply be able to figure out the distance, geographically, between two users based on their zip code and then sort a list based on that. I would imagine this functionality isn't built into Django. I was looking at some options and stumbled across geodjango which seems like it might be overkill for what my needs are. 回答1: Following tcarobruce's suggestion, here is my above comment as an answer: The Zip Code Database Project has a