flask css error
I'm getting a lot of 404s on the styling for this website hosted with flask. It was working earlier with flask a week earlier.
11 Replies
Project ID:
de3e66ba-9af6-4857-8329-5e7ab7706ccf
de3e66ba-9af6-4857-8329-5e7ab7706ccf
I'm not using
url_for
links but I am using static_folder
when initializing the flask objectSolution
url_for()
is the sane way to do it. As flask knows where that isokay I'll give it a go
And the same thing works for the templates folder. Just call the template by it’s location, no need to set the directory manually
Just sayin
got it
Did that work for you @ferretcode?
yes
I forgot to come back to this lol
thanks
Awesome! Glad to hear it. No worries man.
Flask is so barebones compared to Django. But it’s so smart too
yeah
Glad we were able to fix it for you