1
Step 2 Show the data
Tirsvad edited this page 2026-11-22 12:42:56 +01:00

English · Dansk · Bahasa Malaysia

Step 2: Show the data

What this step is

The home page makes the first request and lists every character.

What was done

A small HTTP client fetches the JSON and turns each entry into a Character object. The Flask view only receives characters and renders a template.

What was gained

Keeping the network call out of the view makes the page testable with a fake client, so the tests never call the internet.

Screenshot

Step 2: Show the data