ó
i4Vdc           @   s]   d  Z  d g Z y0 d d l m Z m Z e Z e d d g 7Z Wn e k
 rX e Z n Xd S(   sT  
This module houses the GeoIP2 object, a wrapper for the MaxMind GeoIP2(R)
Python API (https://geoip2.readthedocs.io/). This is an alternative to the
Python GeoIP2 interface provided by MaxMind.

GeoIP(R) is a registered trademark of MaxMind, Inc.

For IP-based geolocation, this module requires the GeoLite2 Country and City
datasets, in binary format (CSV will not work!). The datasets may be
downloaded from MaxMind at http://dev.maxmind.com/geoip/geoip2/geolite2/.
Grab GeoLite2-Country.mmdb.gz and GeoLite2-City.mmdb.gz, and unzip them in the
directory corresponding to settings.GEOIP_PATH.
t
   HAS_GEOIP2i   (   t   GeoIP2t   GeoIP2ExceptionR   R   N(	   t   __doc__t   __all__t   baseR   R   t   TrueR    t   ImportErrort   False(    (    (    sp   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/geoip2/__init__.pyt   <module>   s   	