News for hackers. Stuff that matters.
Re:Flask vs. Django: Worksheet to choose the right framework by dalke on Thursday April 23, 2015 @01:46PM (#9428437)
> Pirates use Flask, the Navy uses Django. WakaTime is a pirate

I don't understand this. According to Netcraft, the US Navy uses Active Server Pages and the UK Navy uses ASP.NET. While there could be Django somewhere in there, there's likely also someone in the US Navy using Flask. I wasn't able to find a source which says that US Navy has decided to use Django for most of its web development - I think it would be pretty surprising for the US Navy to switch to Python over a more traditional enterprise solution!

More likely this is some pop culture culture reference I don't get. Anyone care to explain?

Re:Flask vs. Django: Worksheet to choose the right framework by tosh on Thursday April 23, 2015 @01:50PM (#9428471)
Re:Flask vs. Django: Worksheet to choose the right framework by dalke on Thursday April 23, 2015 @02:18PM (#9428707)
Ahh! Yes, that's a perfect match for the given context. Thanks!

I question the assertion "Django is older and larger, but Flask has a more active community according to GitHub." Surely the number of stars and watchers don't mean that those people are active in the project. According to the github pulse reports for the last month:

> Flask (March 23, 2015 – April 23, 2015): Excluding merges, 19 authors have pushed 23 commits to master and 69 commits to all branches. On master, 16 files have changed and there have been 340 additions and 43 deletions.

> Django (March 23, 2015 – April 23, 2015): Excluding merges, 124 authors have pushed 189 commits to master and 608 commits to all branches. On master, 2,395 files have changed and there have been 25,689 additions and 84,146 deletions.

By those numbers it seems that Django has a much more active community, in the sense of making code changes. There are other types of activity than code commits, like support, conferences, etc. I don't get the sense that Flask is more active there either.

Edit: If it is meant as an allusion to the Mac/Apple][ era at Apple then activity is a poor measure - there was much more activity and general interest in the Apple ][ during the Mac development.

Re:Flask vs. Django: Worksheet to choose the right framework by pyre on Thursday April 23, 2015 @03:05PM (#9429051)
Part of the problem with comparing commits is the Django is more comprehensive. There is a larger "surface area" to make changes to.
Re:Flask vs. Django: Worksheet to choose the right framework by dalke on Thursday April 23, 2015 @04:45PM (#9429675)
The question really is, what's a useful way to determine which of two projects has a "more active community according to GitHub"? Is the number of stars/watchers a good enough proxy to use for decision making?

The projects I use are typically quite small, and my code is on Bitbucket, so I have effectively no experience in this.

Re:Flask vs. Django: Worksheet to choose the right framework by jklein11 on Thursday April 23, 2015 @02:08PM (#9428615)
Not sure why this got downvoted... It 100% answers the question posed. Thanks Tosh!
Re:Flask vs. Django: Worksheet to choose the right framework by jhgg on Thursday April 23, 2015 @01:50PM (#9428470)
I don't think the title refers to the actual US Navy, but rather a "navy" vs "pirates" (as in people who use boats and occupy the open waters). The idea being that Django is more structured and much larger (as a navy usually is), where as Flask is smaller, etc...
Re:Flask vs. Django: Worksheet to choose the right framework by welder on Thursday April 23, 2015 @03:24PM (#9429190)
Author here. The Pirate/Navy title is a metaphor to say Django is rigid and Flask is flexible. You have to do things the Django way. With Flask, you can customize it easily.

P.S. My cofounder Priyanka said the Pirate Navy line thing when reading the post, and I thought it was an awesome title :)

Re:Flask vs. Django: Worksheet to choose the right framework by collyw on Friday April 24, 2015 @04:17AM (#9432009)
While I agree with this to an extent (I use Django on a daily basis) Django is pretty flexible.

If your app falls outside of a certain set of assumptions I would go for Flask (which I considered for a project we are working with). I would say that Flask apps need to be doing something special before Django is not considered.

Re:Flask vs. Django: Worksheet to choose the right framework by pritianka on Thursday April 23, 2015 @03:29PM (#9429220)
Hehe, yes I remember saying it. Wasn't meant to be literal :-)
Re:Flask vs. Django: Worksheet to choose the right framework by andybak on Thursday April 23, 2015 @02:14PM (#9428686)
Yeah. According to this Django is for enterprisy play-it-safe noobs.

Hmmmmm.

Re:Flask vs. Django: Worksheet to choose the right framework by ubernostrum on Thursday April 23, 2015 @01:50PM (#9428469)
It's the sort of thing someone says when they think they're an uber-l33t lean agile stealthy ninja rockstar webdevops disruptive buzzword buzzword, in my experience.