Get It Done! Part 5: User Model
Notes
In this set of lessons we learn how to set up user accounts in our application, and then set up relationships between users and their tasks. Be sure to code along with this video as we start that process by making the following changes:
-
Add 2 new templates. You can reuse (with some modifications) the template for the index page that you created in the User Signup Assignment in order to create the
login.html
andregister.html
files you will need for this assignment. -
Create basic handlers for those routes in
main.py
. - Create a model class for
User
and add it to the database.
Code
View the final code for this lesson.