Skip to content

Commit

Permalink
[Fixes #4153] GeoLite Legacy db discontinued so paver setup fails in …
Browse files Browse the repository at this point in the history
…Geonode 2.8 dev install
  • Loading branch information
afabiani committed Jan 11, 2019
1 parent b333b70 commit 61c3808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/base/management/commands/updategeoip.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
except ImportError:
try:
from django.contrib.gis.geoip import GeoIP
URL = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
URL = 'https://build.geo-solutions.it/geonode/geoserver/latest/GeoLiteCity.dat.gz'
OLD_FORMAT = True
except:
URL = None
Expand Down Expand Up @@ -70,7 +70,7 @@ def handle(self, *args, **options):
import requests
import math
# Streaming, so we can iterate over the response.
r = requests.get(options['url'], stream=True, timeout=10)
r = requests.get(options['url'], stream=True, timeout=10, verify=False)
# Total size in bytes.
total_size = int(r.headers.get('content-length', 0))
logger.info("Requesting %s", options['url'])
Expand Down

0 comments on commit 61c3808

Please sign in to comment.