-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
django 2.x Can't work: from django.contrib.gis.geoip import HAS_GEOIP #70
Comments
fast patch for this(very uggly, broke geop functionality) is: `diff -u /usr/lib/python3.4/site-packages/tracking_/models.py /usr/lib/python3.4/site-packages/tracking/models.py -from django.contrib.gis.geoip import HAS_GEOIP
GEOIP_CACHE_TYPE = getattr(settings, 'GEOIP_CACHE_TYPE', 4)` |
Facing the same problem while migrating to Django-2 File "", line 958, in _find_and_load_unlocked Looking for any updated! |
Make sure to have installed the python library, you can do Django docs explains the steps clearly. |
Yes, geoip2 works just fine. REFER: https://docs.djangoproject.com/en/2.0/ref/contrib/gis/geoip2/ Step by step guide:
4.Download GeoLite2 databases (GeoLite2 City and GeoLite2 Country) only in binary format from here:
For example, My root folder looks like:
|
django2.0 from django.contrib.gis.geoip import HAS_GEOIP I add those to settings: and download GeoLite2 databases (GeoLite2 City and GeoLite2 Country) only in binary format from here:https://dev.maxmind.com/geoip/geoip2/geolite2/ |
I just not use GEOP. While i should do additional configuration, check i have valid dbs for this simple module? |
|
This issue should be resolved with #73. |
django 2.x ModuleNotFoundError: No module named 'django.contrib.gis.geoip'
django.contrib.gis.geoip2
The text was updated successfully, but these errors were encountered: