I'm working in a Django App that stores lat
and lng
for users. I need to find nearby events for users based on their previously-defined radius. For both Users
and Events
, I store Latitude and Longitude in a MySQL database.
I found an example of a raw query that implements the Haversine Formula. There is also a haversine
package for python. How do I use the haversine
package in a regular Django query?