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 Build a Social Network with Flask Making Strong Users Create a User model

I still don't understand the reasoning for passing in the Model argument in the class? Why is that necessary?

If someone can please explain to me, thanks!

2 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Sorry, not sure exactly what part you're asking about. Can you show us some code or explain more?

well for example when we have the: class User(Model) You said it is inheriting the parent class Model, I believe. but I'm still confused as to where Model comes from

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Model comes from peewee when we do from peewee import *.