bev-a-tron / MyFlaskTutorial

A Flask Tutorial for people who don't know any web programming. Actually, it would be helpful to know static HTML, also Python.
341 stars 203 forks source link

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

Open ctivanovich opened 7 years ago

ctivanovich commented 7 years ago

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.

bev-a-tron commented 7 years ago

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')}}'>
ctivanovich commented 7 years ago

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