Kaydet (Commit) d2bcb059 authored tarafından Carl Meyer's avatar Carl Meyer

Fixed #23873 -- Improved GIS error message when GEOS is not installed.

Thanks Claude for writing the patch.
üst ab2819aa
from django.core.exceptions import ImproperlyConfigured
# Want to get everything from the 'normal' models package.
from django.db.models import * # NOQA
from django.contrib.gis.geos import HAS_GEOS
if not HAS_GEOS:
raise ImproperlyConfigured(
"GEOS is required and has not been detected. Are you sure it is installed? "
"See also https://docs.djangoproject.com/en/stable/ref/contrib/gis/install/geolibs/")
# Geographic aggregate functions
from django.contrib.gis.db.models.aggregates import * # NOQA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment