Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gis warning when I don't want to use gis #189

Open
bnisevic opened this issue May 23, 2017 · 5 comments
Open

gis warning when I don't want to use gis #189

bnisevic opened this issue May 23, 2017 · 5 comments

Comments

@bnisevic
Copy link

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")

@YRodriguez
Copy link

+1

2 similar comments
@michela
Copy link

michela commented Feb 21, 2018

+1

@jojjo64
Copy link

jojjo64 commented Mar 19, 2018

+1

@cjerdonek
Copy link

You can include the following early on in the execution of your code to suppress the warning yourself:

import warnings

warnings.filterwarnings('ignore', module='floppyforms',
    message='Unable to import floppyforms.gis')

@MHLut
Copy link

MHLut commented Jul 17, 2020

Bumping this; it would be nice to use a settings flag instead of suppressing the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants