Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
b2d20e98
Kaydet (Commit)
b2d20e98
authored
Ara 24, 2012
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed legacy shortcut for importing GeoIP.
üst
d4ea02b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
31 deletions
+0
-31
__init__.py
django/contrib/gis/utils/__init__.py
+0
-8
geoip.py
django/contrib/gis/utils/geoip.py
+0
-14
geoip.txt
docs/ref/contrib/gis/geoip.txt
+0
-9
No files found.
django/contrib/gis/utils/__init__.py
Dosyayı görüntüle @
b2d20e98
...
...
@@ -14,12 +14,4 @@ if HAS_GDAL:
except
:
pass
# GeoIP now lives in `django.contrib.gis.geoip`; this shortcut will be
# removed in Django 1.6.
from
django.contrib.gis.utils
import
geoip
HAS_GEOIP
=
geoip
.
HAS_GEOIP
if
HAS_GEOIP
:
GeoIP
=
geoip
.
GeoIP
GeoIPException
=
geoip
.
GeoIPException
from
django.contrib.gis.utils.wkt
import
precision_wkt
django/contrib/gis/utils/geoip.py
deleted
100644 → 0
Dosyayı görüntüle @
d4ea02b9
import
warnings
from
django.contrib.gis
import
geoip
HAS_GEOIP
=
geoip
.
HAS_GEOIP
if
HAS_GEOIP
:
BaseGeoIP
=
geoip
.
GeoIP
GeoIPException
=
geoip
.
GeoIPException
class
GeoIP
(
BaseGeoIP
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
warnings
.
warn
(
'GeoIP class has been moved to `django.contrib.gis.geoip`, and '
'this shortcut will disappear in Django v1.6.'
,
DeprecationWarning
,
stacklevel
=
2
)
super
(
GeoIP
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
docs/ref/contrib/gis/geoip.txt
Dosyayı görüntüle @
b2d20e98
...
...
@@ -7,15 +7,6 @@ Geolocation with GeoIP
.. module:: django.contrib.gis.geoip
:synopsis: High-level Python interface for MaxMind's GeoIP C library.
.. versionchanged:: 1.4
.. note::
In Django 1.4, the :class:`GeoIP` object was moved out of
:mod:`django.contrib.gis.utils` and into its own module,
:mod:`django.contrib.gis.geoip`. A shortcut is still provided
in ``utils``, but will be removed in Django 1.6.
The :class:`GeoIP` object is a ctypes wrapper for the
`MaxMind GeoIP C API`__. [#]_ This interface is a BSD-licensed alternative
to the GPL-licensed `Python GeoIP`__ interface provided by MaxMind.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment