1 diff -Nur a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py
2 --- a/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:34:05.330568948 +0100
3 +++ b/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:35:08.679095615 +0100
5 from django.conf import settings
6 lib_path = settings.GDAL_LIBRARY_PATH
7 except (AttributeError, ImportError, ImproperlyConfigured, OSError):
9 + lib_path = "@gdal@/lib/libgdal@extension@"
13 diff -Nur a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
14 --- a/django/contrib/gis/geos/libgeos.py 2020-07-09 22:34:05.331568941 +0100
15 +++ b/django/contrib/gis/geos/libgeos.py 2020-07-09 22:36:24.863526276 +0100
17 from django.conf import settings
18 lib_path = settings.GEOS_LIBRARY_PATH
19 except (AttributeError, ImportError, ImproperlyConfigured, OSError):
21 + lib_path = "@geos_3_9@/lib/libgeos_c@extension@"
23 # Setting the appropriate names for the GEOS-C library.