Запрос getcity(ip) дает ошибку [Errno -2] Name or service not known
в django-python (GeoIP2)
ip = '72.14.207.99'
city=getcity(ip)
на локальном выдает:
{'city': None, 'continent_code': 'NA', 'continent_name': 'North America', 'country_code': 'US', 'country_name': 'United States', 'dma_code': None, 'is_in_european_union': False, 'latitude': 37.751, 'longitude': -97.822, 'postal_code': None, 'region': None, 'time_zone': 'America/Chicago'}
а в веб приложении azure все тоже самое не работает:
[Errno -2] Name or service not known