Forums

css static files arent being rendered

I recently just imported my server and got finally got it up with MySQL but it's not serving up the CSS files in my project. This is my first server deploying and I worked on this in my vscode instead of starting here so the transition has really thrown off what works with what. Sorry in advance if the organization of my directory isn't that great!

my directory looks like this.

Home->
username->
project-folder
---Static 
----------**images**
----------*css folder*
-------------------------css files
---Templates
---------- *.htmls files*
---app.py
---models.py

This is the link im using for jinja in my base template. <link rel="stylesheet" href="{{ url_for('static', filename = './css/homepage.css') }}"> and the other inherited ones use this. <link rel="stylesheet" href="{{ url_for('static', filename = './css/dashboard.css') }}">

Have you set stattic files mappings on the Web page? See: https://help.pythonanywhere.com/pages/StaticFiles/.