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
950e6183
Kaydet (Commit)
950e6183
authored
Eki 05, 2012
tarafından
Justin Bronn
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Need to catch `ImproperlyConfigured` to be freed from the schackles of `DJANGO_SETTINGS_MODULE`.
üst
ab8c9703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
libgdal.py
django/contrib/gis/gdal/libgdal.py
+3
-2
libgeos.py
django/contrib/gis/geos/libgeos.py
+3
-2
No files found.
django/contrib/gis/gdal/libgdal.py
Dosyayı görüntüle @
950e6183
...
...
@@ -7,7 +7,7 @@ from ctypes import c_char_p, c_int, CDLL, CFUNCTYPE
from
ctypes.util
import
find_library
from
django.contrib.gis.gdal.error
import
OGRException
from
django.core.exceptions
import
ImproperlyConfigured
logger
=
logging
.
getLogger
(
'django.contrib.gis'
)
...
...
@@ -15,7 +15,8 @@ logger = logging.getLogger('django.contrib.gis')
try
:
from
django.conf
import
settings
lib_path
=
settings
.
GDAL_LIBRARY_PATH
except
(
AttributeError
,
EnvironmentError
,
ImportError
):
except
(
AttributeError
,
EnvironmentError
,
ImportError
,
ImproperlyConfigured
):
lib_path
=
None
if
lib_path
:
...
...
django/contrib/gis/geos/libgeos.py
Dosyayı görüntüle @
950e6183
...
...
@@ -13,7 +13,7 @@ from ctypes import c_char_p, Structure, CDLL, CFUNCTYPE, POINTER
from
ctypes.util
import
find_library
from
django.contrib.gis.geos.error
import
GEOSException
from
django.core.exceptions
import
ImproperlyConfigured
logger
=
logging
.
getLogger
(
'django.contrib.gis'
)
...
...
@@ -21,7 +21,8 @@ logger = logging.getLogger('django.contrib.gis')
try
:
from
django.conf
import
settings
lib_path
=
settings
.
GEOS_LIBRARY_PATH
except
(
AttributeError
,
EnvironmentError
,
ImportError
):
except
(
AttributeError
,
EnvironmentError
,
ImportError
,
ImproperlyConfigured
):
lib_path
=
None
# Setting the appropriate names for the GEOS-C library.
...
...
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