I'm able to get a response object and render it to the page locally, but on my live site it doesn't work.
I'm using Maxmind's binary database, which is the GeoLite2-City.mmdb
file in my project folder.
This also works in my website's Ubuntu 16.04 terminal:
import geoip2.database
reader = geoip2.database.Reader('/home/jake/project-main/project/GeoLite2-City.mmdb')
ip = request.META.get('REMOTE_ADDR', None)
location_lookup_response = reader.city(ip)
print(location_lookup_resonse)
However, it doesn't work on the site. Any thoughts here are appreciated.