Daily Python Projects

Daily Python Projects

Website with Map of US T-Intersection Car Accidents with Python and Flask

Level: Real-World

Ardit Sulce's avatar
Ardit Sulce
May 07, 2024
∙ Paid
3
4
Share

Project Brief

In yesterday’s project, we generated an HTML showing a map of vehicle accidents at T-intersections across the US in 2022. The problem with that HTML map is that you can’t easily share it with others since it is just an HTML file. That’s where Flask enters the game. Your task for this project is to create a website using Flask. The website should contain the map on the webpage.

Expected Output

The website should contain only one page and that page should contain the interactive map. Here is how the website should look like on the browser:

Step-by-Step Instructions

  1. To get you started easily, below you will find the code that generates the map HTML file. You should build the Flask backend to serve that HTML code on the webpage.

Keep reading with a 7-day free trial

Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Ardit Sulce
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture