This is what you're aiming for when you visit the home page:


In order to achieve this you will need to:

1. Create an SQLite database with SQLAlchemy. The database needs to contain a "Movie" Table. This table should contain the following fields:

id 
title 
year 
description 
rating 
ranking
review
img_url


2. Using code/DB Viewer, add a new entry to the database with the following values:

new_movie = Movie(
    title="Phone Booth",
    year=2002,
    description="Publicist Stuart Shepard finds himself trapped in a phone booth, pinned down by an extortionist's sniper rifle. Unable to leave or receive outside help, Stuart's negotiation with the caller leads to a jaw-dropping climax.",
    rating=7.3,
    ranking=10,
    review="My favourite character was the caller.",
    img_url="https://image.tmdb.org/t/p/w500/tjrX2oWRCM3Tvarz38zlZM7Uc10.jpg"
)

HINT: Be sure to remove the add entry code from step 2 after you have run the code once. Otherwise, you'll get this:


3. Make the code work so that each entry in the database is displayed correctly on the home page.

Notice how the different parts of the data are displayed:

Front:

Back:


SOLUTION