Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Flask REST API!
You have completed Flask REST API!
Preview
Now that the User model is done, it's time to create the User resource and tie the User and Review models together.
Don't want to trash your database to add a new field? Check out the Peewee docs about migrations.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You can definitely check out what's in
the existing workspace, it's a new one so
0:00
I need to launch it over again.
0:00
And you can also of course check
out what you did yourself.
0:02
But I want to show a couple of things
that you might not have thought of.
0:05
One of the first things we need
to do is we have these users.
0:08
The reason I wanna have users, is so that
I can authenticate them, I can make sure
0:12
that they are who they say they are,
but also so I can tie them to a review.
0:15
So let's add a new thing down here,
0:22
which is a ForeignKeyField
that goes back up to user, and
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up