django-leaflet icon indicating copy to clipboard operation
django-leaflet copied to clipboard

Is it supported for Django 2.0 .?

Open daspk04 opened this issue 6 years ago • 4 comments

While trying to register my model in admin which is for a multipolygon field in a Django 2.0 project but the after adding LeafletGeoadmin the leaflet admin map appears blank not sure what is the problem but it used to work on Django 11.7.2

image

daspk04 avatar May 03 '18 20:05 daspk04

We have a Django 2 working fine with django leaflet. Do you have any error in the javascript console ?

Gagaro avatar May 15 '18 08:05 Gagaro

Not sure if there is an error in javascript console. But I am bit new to django, Could you suggest how can I check that ?. Btw the model works fine if I use OSMGeoAdmin. The result as below

image

I did cross check again to make sure if it is properly installed and if I have added the import in admin page. But still it appears blank

image

image

image image

daspk04 avatar May 17 '18 11:05 daspk04

I checked Travis and didn't find that there are builds\test with Django2.0 but I do see builds for Dev, so I guess they're running on the latest 2.0 code and not the 2.0 or 2.0.1 release. Can you confirm that for me I'm not that familiar with Travis. ty!

askpatrickw avatar May 18 '18 21:05 askpatrickw

The dev tag is used to build on master (so 2.1 right now):

https://github.com/makinacorpus/django-leaflet/blob/master/.travis.yml#L103-L104

However, it is the master of the moment the travis build was made, and it is an allowed failure (https://github.com/makinacorpus/django-leaflet/blob/master/.travis.yml#L79-L87), which means it wouldn't break the tests event if it failed.

But it looks like it was on an early version of 2.1 at the time (https://travis-ci.org/makinacorpus/django-leaflet/jobs/308429673#L704).

Gagaro avatar May 19 '18 07:05 Gagaro