I haven't use Python for more than a few shell programs since 2011. I was using Django to build websites. Is Flask the most popular Python web framework now?
Not really, I would say they are roughly equally popular, but Flask is simpler than Django - less modules and things included out of the box. It designed more for simpler apps. Flask doesn't have its own ORM layer, for example... In these tuts they use SQLAlchemy, but you could also use MongoDB or even SQLLite. There's more structure and convention already in place with Django - more things happening by themselves in the background to make things work.
Pyramid is another popular Python web framework these days, but I've never used it.
6 comments
1 u/DinoRider 06 May 2016 04:07
I haven't use Python for more than a few shell programs since 2011. I was using Django to build websites. Is Flask the most popular Python web framework now?
1 u/dizzydog 06 May 2016 08:57
Not really, I would say they are roughly equally popular, but Flask is simpler than Django - less modules and things included out of the box. It designed more for simpler apps. Flask doesn't have its own ORM layer, for example... In these tuts they use SQLAlchemy, but you could also use MongoDB or even SQLLite. There's more structure and convention already in place with Django - more things happening by themselves in the background to make things work.
Pyramid is another popular Python web framework these days, but I've never used it.
1 u/DinoRider 07 May 2016 03:36
Thanks. That's a good summary.
2 u/Devops [OP] 17 May 2016 16:27
flask is much more customisable than Django, would recommend using it
1 u/DinoRider 17 May 2016 18:50
That was the main thing that pushed me away from Django, although it wasn't terrible in that regard.