Project Challenge: Inserting Pets
Explore how to create Pet model objects from data, add them to the Flask database session, and commit changes while managing exceptions. This lesson builds on prior user data insertion exercises to deepen your understanding of database operations in Flask.
We'll cover the following...
We'll cover the following...
Problem statement
In the previous challenges, we got rid of the users list. Now, we also want to replace the pets list. Therefore, in this challenge, you will perform the following tasks: