Error setting up geoip on Django

前端 未结 1 1499
醉梦人生
醉梦人生 2021-01-06 18:56

I\'m trying to add geolocation to a website, using GeoIP. I followed the instructions on Django docs, but I get this error: ImproperlyConfigured: Error importing midd

相关标签:
1条回答
  • 2021-01-06 19:20

    Seems I got a solution after all. The import statement should be:

    from django.contrib.gis.utils.geoip import GeoIP
    
    0 讨论(0)
提交回复
热议问题