Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ctivanovich opened this issue Apr 28, 2017 · 2 comments
Open

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

ctivanovich opened this issue Apr 28, 2017 · 2 comments

Comments

@ctivanovich
Copy link

ctivanovich commented Apr 28, 2017

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants