Search⌘ K
AI Features

Project Challenge: Retrieving Pets from the Home and Details Page

Explore how to retrieve pet data from a database and display it dynamically on your application's home and pet details pages. This lesson guides you through modifying Flask views and templates to fetch and present database records effectively, preparing you for full CRUD operations in your Flask projects.

We'll cover the following...

Problem statement

Before now, we have been using the pets list to populate the home page and the Pet Details page. However, in the previous challenge, we inserted some pets into the database ...