Week 6 — 6 / 15

Static Assets in Flask

Flask has built-in support for serving static assets, so we'll use that: https://flask.palletsprojects.com/en/2.0.x/tutorial/static/

From Exercise 5:

We can send explicitly with https://flask.palletsprojects.com/en/2.2.x/api/#flask.Flask.send_static_file, or let Flask handle it by default by putting them in our static/ directory.