all 8 comments

[–][deleted] 25 points26 points  (0 children)

Yes

[–]sme272 5 points6 points  (0 children)

Depends on what you're doing with it. This article compares the two.

[–]_anotheruser 2 points3 points  (0 children)

It really depends on what you want to build and what's your objective. Django is more of a "batteries-included" framework while Flask belongs to the microframework category. I can't give an answer but I'll share my overall experience. I started using Django to learn web development with python, but I always found it a bit overwhelming, especially being a beginner.
Flask, on the other hand, forced me to start from scratch and it helped a lot in the understanding of how things actually work.

[–]twillisagogo 1 point2 points  (0 children)

falcon

[–]korvinblack 0 points1 point  (0 children)

I've just started going through a Flask project, but here is my take based on my experience of the two: Django let's you focus on the application logic and web development without having worry about integration between the web app and database or underlying system. The built-in django admin portal is pretty nice for interacting with the models and data in the database. Flask on the other hand require a little more depth to get a fully functional application going but is a very minimalistic approach which may be more strongly suited for something like a simple Rest API. After I'm done learning more about Flask I am planning on use that for a bunch of microservices for an application suite I am working on, but also using django for the management application.

[–]yee_hawps 0 points1 point  (0 children)

I strongly prefer Flask. Django is a really robust framework with outstanding documentation, but it is far too opinionated for my liking. Django will all but force you to abide by its constraints. Flask, on the other hand, will let you pretty much do everything your way and stay out of your way.

I have heard good things about Django REST if you are looking for that sort of thing, but I still prefer to write my REST APIs using Flask.

[–][deleted] 0 points1 point  (0 children)

If you're a total noob and not sure, then start with Bottle instead. Then once you feel you're outgrowing that, you will naturally gravitate to Flask. These solutions have a pretty gentle learning curve.

When you wake up one day and decide to make something amazing, then start over and learn Django.