Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Pranjal Agnihotri
Pranjal Agnihotri
4,187 Points

Django vs Flask

Hii there , I am new to Python but I have got prior programming experience.I have some questions to ask:

  1. I am currently learning Python basics but I feel very boring because all those basic concepts are taught so can I jump directly to some project using Python?
  2. I have heard about the two python frameworks Django and Flask but I don't know what is the use of both?

1 Answer

Ari Misha
Ari Misha
19,323 Points

Hiya there again! Flask and Django both are web development frameworks written in Python. But Django feels like a full framework coz its fulfills the definition of a framework. Django has follows pythonic way of MVC architecture. But Flask too. Flask has relatively smaller footprint of a framework. You might end up with using a lots of dependencies and third party libraries with Flask which kinda bothers me a lot coz dependencies dont react well with each others. So its hard to debug. But if you have something medium sized project in mind, i'd rather use Flask as compared to Django, just coz Flask is more light weight than Django. But this is all just my opinion.

~ Ari