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

Kevin Faust
Kevin Faust
15,353 Points

Peewee vs SQLalchemy

in the python track (using python with databases), we use Peewee. i read online and alot of people said that SQLalchemy is better so im wondering what the benefits of learning peewee is.

also what about django and flask? thye seem to be really popular

there are very little articles and very few users that seem to be using peewee...

1 Answer

Michael Hulet
Michael Hulet
47,912 Points

My experience with Python is entirely learned from Treehouse, so I can't speak of the benefits of SQLAlchemy over peewee, but I can tell you that Treehouse has a great Track for Flask, as well as a few Django courses

Kevin Faust
Kevin Faust
15,353 Points

Yea i know that i was just wondering if flask/django is better to learn than peewee due to ita popularity. Or if peewee will give a foundation to transition to flask/django.

On a more personal level, do you use peewee? Do you prefer to use django/flask?

Thanks

Michael Hulet
Michael Hulet
47,912 Points

Flask accomplishes an entirely different task than peewee. Flask is a framework to make it easy to write web servers, whereas peewee is an ORM to make it easy to interact with databases. Those are entirely separate tasks, but they go hand in hand, because web servers often need to keep track of user data, and a database is a perfect method to do that. Django combines those concepts into a single framework.

I'm still towards the end of the Flask track, so I'm just learning to use all the technologies taught there in the real world. I'm currently working on my first project with Flask/peewee. I have yet to try Django