Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to reload the flask server when I change my css code?

Tags:

python

css

flask

I am trying to edit my CSS code in the static folder. But the problem is: Flask is not reloading CSS changes.

<head>
<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='style.css') }}">
</head>

I expected the changes but there is no change on editing the css file.

like image 414
atyam anudeep Avatar asked Sep 06 '25 16:09

atyam anudeep


1 Answers

I had the same problem and it was the browser cache not clearing out. I found a solution for Chrome and Firefox: hold down the Shift key while clicking the reload button

like image 165
Rodrigo E. Principe Avatar answered Sep 08 '25 11:09

Rodrigo E. Principe