-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
django-geojson tries to use django.contrib.gis objects, but if ImportError or ImproperlyConfigured exceptions are raised, it fallbacks to custom nogeos objects. In my case (working on Windows) an OSError exception is raised, breaking the code. I added this exception to a fork of the library and everything seems to work fine:
# djgeojson/templatetags/geojson_tags.py
except (ImportError, ImproperlyConfigured, OSError):
# djgeojson/fields.py
except (ImportError, OSError):
# djgeojson/serializers.py
except (ImportError, ImproperlyConfigured, OSError):
Of course my issue depends on a local configuration, but the fix suggested makes life easier to the unexperienced.
Thanks a lot for the library, by the way!
Metadata
Metadata
Assignees
Labels
No labels