We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78be201 + b84f90b commit 09a7474Copy full SHA for 09a7474
tracking/models.py
@@ -3,17 +3,7 @@
3
import logging
4
import traceback
5
6
-try:
7
- # Django < 1.6
8
- from django.contrib.gis.utils import HAS_GEOIP
9
- if HAS_GEOIP:
10
- from django.contrib.gis.utils import GeoIP, GeoIPException
11
-except ImportError:
12
- # Django 1.6+
13
- from django.contrib.gis.geoip import HAS_GEOIP
14
15
- from django.contrib.gis.geoip import GeoIP, GeoIPException
16
-
+from django.contrib.gis.geoip import GeoIP, GeoIPException
17
try:
18
from django.conf import settings
19
User = settings.AUTH_USER_MODEL
0 commit comments