django-geoposition
django-geoposition copied to clipboard
Map does not render in version django 1.11.
After several tests, I realized that the map does not render in the version of django 1.11. Already in version 1.10 works perfectly.
Faced with exactly the same problem. There is no js error, the map is not rendered, and there are no headings "latitude", "longitude"
Seeing the same
@marlonleite @narnikgamarnikus @wjdp I'm not currently using django-geoposition in a Django >1.9 project. Would one of you be able to provide a fix for this by any chance?
Happy to take a look
For those on 1.11 waiting for a release you can do pip install https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip
in the meantime
@philippbosch Is there any blocker for merging those fixes into master and releasing the package?
I am also facing the issue of map not rendering in admin page, django-1.11
@AkhilLabGlo I'm using the version from django-1.11
branch as @wjdp pointed out.
It would be nice to get a release, but it works as a temporary solution.
Seems like the author doesn't use 1.11, so it's not a critical issue in his use cases. However, for most of my projects, I keep actual version of Django via incremental upgrades (not a lot of updates are needed usually), so it was a blocker for me.
I also use django 1.11 and I'm having the same problem rendering the map, but I used the temporary solution above and it worked!
Hi. I am using pip-tools
. How can I pin down the requirements.in
?
https://github.com/jazzband/pip-tools/issues/593
Any updates about 1.11?
It would be very nice to get a release if possible.
map not rendering in django 2.0 how can i correct this
@NgariC https://github.com/philippbosch/django-geoposition/issues/100
Still not fixed. Django 1.11.6
Any ETA for releasing a Django 1.11 compatible version? Thanks!
Guys, it's been more than a year and this is still not fixed...
As several others, I created a fork. My forks has support for Django 1.11 and 2.x from other forks and a minor fix to avoid django's Javascript global var conflicts: https://github.com/imdario/django-geoposition
@imdario Your fork throws errors in admin. Have you tested it in 1.11?
super() takes at least 1 argument (0 given)
Over here: https://github.com/imdario/django-geoposition/blob/master/geoposition/widgets.py#L23
I upgraded it to Django 2.x and I use Python 3.7. That's why you got this error. Maybe we can work out a compatible version with both versions. I'm sorry I forgot that this issue was about 1.11 compatibility. Actually, I was on Django 1.11 but I ended upgrading to the last version. Dario Castañé dario.im[1]
On Sat, Oct 27, 2018, at 02:43, Andrey Shipilov wrote:
@imdario[2] Your fork throws errors in admin. Have you tested it in 1.11?> image 2018-10-27 11 12 50
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub[3], or mute the thread[4]. Links:
- https://dario.im/
- https://github.com/imdario
- https://github.com/philippbosch/django-geoposition/issues/83#issuecomment-433576960
- https://github.com/notifications/unsubscribe-auth/AAJ8wZ_uulY7hefAe9QUD_hloCsF09goks5uo6w6gaJpZM4NTKol
@imdario Absolutely.
If you change:
context = super().get_context(name, value, attrs)
to Py2 style:
context = super(GeopositionWidget, self).get_context(name, value, attrs)
then voila.
@andreyshipilov, fixed and released as v0.3.5.
@imdario Awesome! Cheers mate :)
Hi @imdario,
I'm using Django 2.0.9 and django-geoposition=0.3.0 and this widget doesn't work in Admin.
Can I ask you how can I install 0.3.5?

@jvorcak, it looks I forgot to update the README in order to point to my own PyPI package: django-geoposition-2.