I'm currently hardcoding all urls in css files. Here's one line of many of them.
.logo { background: url(**../imgs/logo.png**) no-repeat 0 10px; width: 169px; height: 40px; }
All other urls in my html files are served via Flask's url_for function. I tried to apply this to my css files as well but it won't work. I'm assuming it is because css files are fetched when html files requests them from the browser.
So is there a way to handle urls in css via Flask? If there is, should I?
Just in case my directory structure is roughly
static/
css/
fonts/
imgs/
js/
templates/
uploads/
app.py and models.py and git, db, procfile etc...