jazzband / jazzband/django-floppyforms

gis warning when I don't want to use gis

Open
#189 5 comments 21 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
836
Forks
150
PR merge metrics
No merged PRs in 30d

Description

In the v1.7.0 floppyforms are requiring GDAL even if I don't want to use GeoDjango widgets.
https://github.com/gregmuellegger/django-floppyforms/blob/master/floppyforms/__init__.py#L21

This should be optional. I shouldn't see warning that floppyforms.gis can not be imported when GDAL is missing if I don't want to use GeoDjango widgets.

> UserWarning: Unable to import floppyforms.gis, geometry widgets not available
"Unable to import floppyforms.gis, geometry widgets not available")

Contributor guide

Open the contributing guide

Research direction

Read floppyforms/__init__.py around line 21 and reproduce the import behavior in an environment without GDAL. Verify that using non-GIS floppyforms no longer emits the warning, while GeoDjango widgets remain unavailable without the optional dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.