bev-a-tron/MyFlaskTutorial

CSS sheet not being displayed (tutorial step 2-3)

ctivanovich opened this issue · 2 comments

I followed the naming convention in the tutorial, though I also removed the _lulu suffix from every filename and variable thus far. Could this be causing the css file to go undetected? I've checked and rechecked that the css file is in the static folder, and that the file references in the .html files point to the right names.
The project folder is name MyFlaskTutorial, where application.py lives, and HTML in the templates is rendering just fine. In fact, I just finished the whole tutorial, albeit without the CSS ever getting rendered.

It should work okay if you've changed the name for all instances of style_lulu.css. Did you also change the stylesheet references in the HTML files? Also, did you put your CSS file into a directory called static?

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

Yes, as I say in my post, I did all of those things :)