App Engine Python SDK version 1.7.4 (2)
[gae.git] / python / lib / django_1_4 / django / contrib / gis / utils / geoip.py
blob2d3b2ae4e6c6cc038538ea14476bfefc1066014f
1 import warnings
3 from django.contrib.gis import geoip
4 HAS_GEOIP = geoip.HAS_GEOIP
5 if 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)