#6688 (Integrating django.contrib.gis in lino.)
by Sharif Mehedi · in Developers · assigned to Sharif Mehedi
Résumé
Concepts sous-jacents
Commentaires
- 7 mois ago by Sharif Mehedi in reply to Luc Saffre about #6688 (Integrating django.contrib.gis in lino.) : Seems like a good idea.
- 7 mois ago by Luc Saffre in reply to Luc Saffre about #6688 (Integrating django.contrib.gis in lino.) (1 reply) : So it is a client-side condition that decides whether the action is visible or not? Maybe a new action attribute "beforeshow" that works like "preprocessor", i.e. it contains a JS expression to evaluate by the client. And then in preprocessors.tsx a function Lino.hasLocation().
- 7 mois ago by Sharif Mehedi in reply to Luc Saffre about #6688 (Integrating django.contrib.gis in lino.) : I have a mixin Locateable which has an action set_location, it can get the current location/coordinates of the device, probably a browser supporting html5 (browser's Geolocation API), or location API in android native. And I tried the browser way, it gives me a coordinate with accuracy radius of abo...
- 7 mois ago by Luc Saffre in reply to Sharif Mehedi about #6688 (Integrating django.contrib.gis in lino.) (2 replies) : What means "only on mobile"? A maximal screen width? What action?
- 7 mois ago by Sharif Mehedi about #6688 (Integrating django.contrib.gis in lino.) (1 reply) : In pronto I would like to have action that is only available on a mobile device and not on computers. Should I have another action attribute, maybe "mobile_only"?
- 7 mois ago by Luc Saffre about #6688 (Integrating django.contrib.gis in lino.) : Why not have a plugin that works only with postgresql. It would raise an exception if the database doesn't support GeoDjango. Maybe we should start with an experimental application in a repository on its own.
- 7 mois ago by Sharif Mehedi about #6688 (Integrating django.contrib.gis in lino.) : GIS is fully supported in PostgreSQL and sqlite4.3, and has limited functionality in MySQL and sqlite<4.3. Not sure how to manage integration across databases. See doc.
- 7 mois ago by Sharif Mehedi about #6688 (Integrating django.contrib.gis in lino.) : First thing to dive into docs.djangoproject.com/en/6.0/ref/contrib/gis/tutorial/
- 7 mois ago by Sharif Mehedi about #6688 (Integrating django.contrib.gis in lino.) : Created new Ticket #6688 (Integrating django.contrib.gis in lino.).