title: How to get a users lat and long via button press in Django?
body: <p>I'm in the process of trying to create an app that can grab a users lat and long when a button is press/clicked. I plan on storing the lat and long inside of a model field for each individual press/click. Only to be used later on inside of an interactive map, displaying every lat and long that has been stored. Looking into Leaflet or Google Maps API to implement a map. I've read the Django documentation on GeoIP2 and I think it may be my best option but I'm not sure if there are any better options?</p>
  <p>As far as implementing GeoIP2 goes, it's really as simple as what I have below, correct?</p>
  <pre><code>from django.contrib.gis.geoip2 import GeoIP2
  
  g = GeoIP2()
  lat,lng = g.lat_lon(user_ip)
  model_field_example_lat = lat
  model_field_example_lng = lng
  </code></pre>