I am trying to create a website using Flask, but while my HTML file is working, my CSS file is not working. I have tried refreshing my cache and using different lines of code others have posted on similar questions, but nothing has worked for me.
This is my current project hierarchy:
I have the following line of code in my HTML file's head.
<link rel="stylesheet" href="{{ url_for('static', filename='css/mainpage.css') }}">
I got this code from a different stack overflow question too, so I am quite confused on what I am doing wrong too.
Application not picking up .css file (flask/python)
Thanks in advance!