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

Flask or Django?

Hi,

I just completed my Python track, and would like to learn a python framework. There are two tracks here in Treehouse(Flask and Django) and I am not sure which track I should join.

I would appreciate your responses!

Happy coding!

1 Answer

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Both are mature Python web frameworks that enable you to build any kind of web apps.

Flask is microframework with small api, very easy and straightforward to learn, perfect for small projects, Flask's official documentation is quite good. In comparison, Django is a much larger more complex framework bundled with lots of stuffs & admin interface, the app you write with Django should follow the MVC (or MVT whatever the Django community likes to call it) architecture. Django has a much larger community and more books written on the subject than Flask.

If you're a beginner without much prior back-end development experience, Flask is probably a better choice to go for as it's more beginner-friendly. Chances are if your ultimate goal is to become a Python web developer, you'd probably endup learning both frameworks one way or the other, and knowing Flask should make learning Django much easier.

Ronald Tse
Ronald Tse
5,798 Points

may I know are they similar?

Perfect! Thank you for your clear explanation!