Commits

Josh VanderLinden  committed 3ac4f20

Throwing in an additional check for GeoIP stuff

  • Participants
  • Parent commits 189c37a
  • Tags 0.3.5

Comments (0)

Files changed (1)

File tracking/models.py

 import logging
 import traceback
 
+from django.contrib.gis.utils import HAS_GEOIP
+
+if HAS_GEOIP:
+    from django.contrib.gis.utils import GeoIP, GeoIPException
+
 from django.conf import settings
 from django.contrib.auth.models import User
-from django.contrib.gis.utils import GeoIP, GeoIPException, HAS_GEOIP
 from django.db import models
 from django.utils.translation import ugettext, ugettext_lazy as _
 from tracking import utils