3 from django
.contrib
.gis
import geoip
4 HAS_GEOIP
= geoip
.HAS_GEOIP
6 BaseGeoIP
= geoip
.GeoIP
7 GeoIPException
= geoip
.GeoIPException
9 class GeoIP(BaseGeoIP
):
10 def __init__(self
, *args
, **kwargs
):
11 warnings
.warn('GeoIP class has been moved to `django.contrib.gis.geoip`, and '
12 'this shortcut will disappear in Django v1.6.',
13 PendingDeprecationWarning
, stacklevel
=2)
14 super(GeoIP
, self
).__init
__(*args
, **kwargs
)