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
c2975910
Kaydet (Commit)
c2975910
authored
7 years ago
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #28178 -- Changed contrib.gis to raise ImproperlyConfigured if gdal isn't installed.
üst
a404f75f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
libgdal.py
django/contrib/gis/gdal/libgdal.py
+5
-4
1.11.2.txt
docs/releases/1.11.2.txt
+4
-0
No files found.
django/contrib/gis/gdal/libgdal.py
Dosyayı görüntüle @
c2975910
...
...
@@ -26,7 +26,7 @@ elif os.name == 'posix':
# *NIX library names.
lib_names
=
[
'gdal'
,
'GDAL'
,
'gdal2.1.0'
,
'gdal2.0.0'
,
'gdal1.11.0'
,
'gdal1.10.0'
,
'gdal1.9.0'
]
else
:
raise
GDALException
(
'Unsupported OS "
%
s"
'
%
os
.
name
)
raise
ImproperlyConfigured
(
'GDAL is unsupported on OS "
%
s".
'
%
os
.
name
)
# Using the ctypes `find_library` utility to find the
# path to the GDAL library from the list of library names.
...
...
@@ -37,9 +37,10 @@ if lib_names:
break
if
lib_path
is
None
:
raise
GDALException
(
'Could not find the GDAL library (tried "
%
s"). Try setting '
'GDAL_LIBRARY_PATH in your settings.'
%
'", "'
.
join
(
lib_names
)
raise
ImproperlyConfigured
(
'Could not find the GDAL library (tried "
%
s"). Is GDAL installed? '
'If it is, try setting GDAL_LIBRARY_PATH in your settings.'
%
'", "'
.
join
(
lib_names
)
)
# This loads the GDAL/OGR C library
...
...
This diff is collapsed.
Click to expand it.
docs/releases/1.11.2.txt
Dosyayı görüntüle @
c2975910
...
...
@@ -11,3 +11,7 @@ Bugfixes
* Added detection for GDAL 2.1 and 2.0, and removed detection for unsupported
versions 1.7 and 1.8 (:ticket:`28181`).
* Changed ``contrib.gis`` to raise ``ImproperlyConfigured`` rather than
``GDALException`` if ``gdal`` isn't installed, to allow third-party apps to
catch that exception (:ticket:`28178`).
This diff is collapsed.
Click to expand it.
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