←back to thread

Happy 20th Birthday, Django

(www.djangoproject.com)
578 points davepeck | 4 comments | | HN request time: 0.808s | source
Show context
hedgehog0 ◴[] No.44561051[source]
Out of curiosity, for people who have do projects in both Django and Ruby on Rails, which one would you prefer and why?

I learned Python more than 10 years ago, but later chose Rails to be my first web framework to learn, as I also wanted to learn more about Ruby, hence the question.

replies(7): >>44561573 #>>44561623 #>>44563715 #>>44564713 #>>44569647 #>>44570277 #>>44572694 #
1. sroerick ◴[] No.44564713[source]
I haven’t done a ton with Rails professionally - but in my mind, if I was doing customer facing CRUD I would reach for rails, I think the deployment ecosystem and development experience is a bit better.

Django, however, is wonderful for internal tooling, or anything where you need to plug in Python libraries. GIS is a clear win for Django, as well as custom BI work or data analytics

replies(2): >>44564918 #>>44565558 #
2. rick1290 ◴[] No.44564918[source]
Django, however, is wonderful for internal tooling, or anything where you need to plug in Python libraries. GIS is a clear win for Django, as well as custom BI work or data analytics

Can you share more here? Would you go the route of django templates for internal tooling?

3. paradox460 ◴[] No.44565558[source]
How is GIS a clear win for Django, when the largest gis project on earth (OpenStreetMap) runs on rails?
replies(1): >>44566922 #
4. Demiurge ◴[] No.44566922[source]
How is the largest GIS project, or OpenStreetMap, relevant example for most projects?

But, to help those wondering about RnR vs Django for dealing with GIS data, the answer is the python ecosystem is just larger for dealing with GIS data. There are more libraries like fiona, shapely, gdal examples, etc. Django ORM supports all of the PostGIS functions, geos and ogr object helpers.

Rails does not have an alternative for PolygonField, Raster support, or geometry field queries like filter(geom__intersects=area)