makinacorpus / django-leaflet

Use Leaflet in your Django projects
GNU Lesser General Public License v3.0
716 stars 282 forks source link

gdal error #212

Open shailoy opened 6 years ago

shailoy commented 6 years ago

hi, I am using django 1.11 when i run the migrate command it give me gdal related error but you mentioned that i dont need gdal for this. can you please help me in this regard

Gagaro commented 6 years ago

django-leaflet does not have migrations nor model fields. In which migration do you have an issue and what is the traceback ?

nebnola commented 6 years ago

Hi, I have the same issue. It occurs with the example given. I installed all the requirements in a fresh virtualenv and tried to migrate, and then I got an error that GDAL was not found.

Gagaro commented 6 years ago

gdal is a requirements for GeoDjango since the 1.11 https://docs.djangoproject.com/en/1.11/releases/1.11/#id1

Are you using Django 1.11 and part of GeoDjango?

nebnola commented 6 years ago

I am in fact using Django 1.11, but I don't use GeoDjango that I'm aware of. I thought GeoDjango wouldn't be a requirement for django-leaflet.

Gagaro commented 6 years ago

I guess that it is because django-leaflet use some part of geodjango for its form fields: https://github.com/makinacorpus/django-leaflet/blob/master/leaflet/forms/fields.py#L8