Re: Pivot Table in django

2018-01-31 Thread hunter.cur...@gmail.com
You could use this library: https://github.com/martsberger/django-pivot On Wednesday, January 31, 2018 at 4:55:48 AM UTC-7, harshvardhan singh wrote: > > Can anyone give me the guidance for "How to build a pivot table in Django"? > I want to implement something like this: > https://pivottable.j

Re: Sample of GeoDjanco websites

2018-03-20 Thread hunter.cur...@gmail.com
I've been using geodjango for a few years now and it's quite useful. I wrote some blog posts about setting up a server here: https://geoanalytic.github.io/ although some of the info is in need of an update it does discuss using leaflet on the front end. I'd also recommend checking out Geonode,

Re: How to combine a custom date and time field in Django?

2018-03-26 Thread hunter.cur...@gmail.com
Using database time functions is a bit of a hassle since each database seems to have its own syntax for these types. If you are using MySQL, the function you are calling will only return a DATE field, in this case you want to use TIMESTAMP with the parameters all combined in a single text string

Re: GeoDjango with Docker

2016-12-01 Thread hunter.cur...@gmail.com
Hi Tadeo, I've recently gone through this exercise myself, and documented my progress in three posts: https://geoanalytic.github.io/a-production-ready-web-mapping-toolkit-part-1/ https://geoanalytic.github.io/a-production-ready-web-mapping-toolkit-part-2/ https://geoanalytic.github.io/a-production

Re: Docker: NGINX, Postgres, Django, Static, Media Files

2019-07-14 Thread hunter.cur...@gmail.com
Probably the easiest way to do what you are looking for is to use cookiecutter-django: https://github.com/pydanny/cookiecutter-django They are now using Caddy for the web server but if you look in earlier versions there are good examples of how to use Nginx if that is your preference. On Sunda

Re: Celery/Redis Django 2.0 Design Question

2018-10-28 Thread hunter.cur...@gmail.com
I think you are on the right track. I am doing something similar with photos and gps tracks uploaded by users and the celery/redis combo makes it easy to run a compute intensive task without blocking the site. I'm not sure if the celery-signals approach is strictly necessary, however. I am foll

Re: How to generate points kilometers from a road

2021-01-06 Thread hunter.cur...@gmail.com
Have a look at the GEOSGeometry class: https://docs.djangoproject.com/en/3.1/ref/contrib/gis/geos/#geosgeometry If you just want to specify a location along a linestring, try the interpolate method. On Tuesday, January 5, 2021 at 7:23:43 AM UTC-7 jfa...@inerza.com wrote: > > Exactly, what I ne