3 ms·
If you are new to Python and just want to have a working project instead of tinkering, then Django is better suited. Flask is for more advanced uses where you n
by aartur 13y ago
If you are new to Python and just want to have a working project instead of tinkering, then Django is better suited. Flask is for more advanced uses where you need to have more control or be able to integrate components you choose (like SQLAlchemy instead of Django ORM, or a NoSQL DB).
- mikeyouse 13y agoI disagree somewhat.. I'm a hobbyist at best when it comes to programming. Like I've never actually shipped anything in my life. I recently decided to put an end to that to solve a problem for a family member's business. They just wanted a simple web form, where the sales people could add notes throughout the day and then automatically email those notes to the owner at the end of the day. I first tried Django and was quickly overwhelmed.. I switched to Flask and with the help of flask-login, flask-wtforms, and flask-mail, it only took me a long weekend to get it up and running. Just a personal anecdote, but Flask was much easier for me.
- obviouslygreen 13y agoFlask is definitely easier... it also offers far less. Which is fine in some circumstances -- perhaps many -- but the fact that Django has a steeper learning curve is due to the fact that it covers a lot more ground in terms of things many if not most web applications need. This doesn't make it better, but it also doesn't make it worse.