-1

Im new to flask, and dont understand how to use it! Ive been following flasks tutorial https://flask.palletsprojects.com/en/1.1.x/tutorial/ and when i got to the part where you add css, there was no change. Ive even copied and pasted the code from their GitHub just to make sure that I had got it right, and it still didnt work!

My Folder setup and code is the exact same as https://github.com/pallets/flask/tree/1.1.2/examples/tutorial

I dont get it because after the copy and paste from github, every file has the correct code, and I dont get any errors, just no CSS.

How is this possible?

Legacy Coding
  • 544
  • 2
  • 6
  • 30
  • Please copy sample of your files (html, css and flask-python). Where did you put the css code? Is it inside html or it's an external file? – IoaTzimas Dec 17 '20 at 12:42
  • @IoaTzimas my folder setup and code is the exact same as https://github.com/pallets/flask/tree/1.1.2/examples/tutorial – Legacy Coding Dec 17 '20 at 12:44

2 Answers2

1

I am not very familiar with Flask. However, I have experienced a similar issue with another Framework (Django).

When adding or changing CSS code, the webpage still relies on cached data and therefore the Style is not updated.

Try to do a hard refresh of the webpage, usually it's ctrl+F5.

alpha027
  • 85
  • 1
  • 7
0

If you go to the network tab you can find, whether the file is taking from the cache or not.

enter image description here

NavaneethaKrishnan
  • 1,151
  • 8
  • 20