mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed.
This commit is contained in:
@@ -225,17 +225,8 @@ Troubleshooting
|
||||
Can't find GDAL library
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
When GeoDjango can't find the GDAL library, the ``HAS_GDAL`` flag
|
||||
will be false:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> from django.contrib.gis import gdal
|
||||
>>> gdal.HAS_GDAL
|
||||
False
|
||||
|
||||
The solution is to properly configure your :ref:`libsettings` *or* set
|
||||
:ref:`gdallibrarypath` in your settings.
|
||||
When GeoDjango can't find the GDAL library, configure your :ref:`libsettings`
|
||||
*or* set :ref:`gdallibrarypath` in your settings.
|
||||
|
||||
.. _gdallibrarypath:
|
||||
|
||||
|
||||
@@ -94,3 +94,6 @@ Bugfixes
|
||||
|
||||
* Fixed ``QuerySet.prefetch_related()`` crash when fetching relations in nested
|
||||
``Prefetch`` objects (:ticket:`27554`).
|
||||
|
||||
* Prevented hiding GDAL errors if it's not installed when using ``contrib.gis``
|
||||
(:ticket:`28160`). (It's a required dependency as of Django 1.11.)
|
||||
|
||||
Reference in New Issue
Block a user