Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask Issues
#6
Ok so new problem I cant seem to get right. I am trying to define some images in the css file but they wont work.

#submit:hover {
 background: url("{{ url_for('static', filename='images/blueButton.png') }}") 0 0 no-repeat;
}
the script out put gives me
Error:
GET /static/styles/%7B%7B%20url_for('static',%20filename='images/blueButton.png')%20%7D%7D HTTP/1.1" 404 -
And I cant seem to find anywhere the correct syntax for the css.

Cheers
Iain
Reply


Messages In This Thread
Flask Issues - by iainstott - Oct-27-2016, 06:02 PM
RE: Flask Issues - by micseydel - Oct-27-2016, 06:58 PM
RE: Flask Issues - by iainstott - Oct-27-2016, 07:13 PM
RE: Flask Issues - by micseydel - Oct-27-2016, 07:26 PM
RE: Flask Issues - by iainstott - Oct-27-2016, 07:50 PM
RE: Flask Issues - by iainstott - Oct-28-2016, 11:54 AM
RE: Flask Issues - by iainstott - Oct-28-2016, 02:05 PM
RE: Flask Issues - by snippsat - Oct-28-2016, 02:52 PM
RE: Flask Issues - by iainstott - Oct-28-2016, 04:01 PM
RE: Flask Issues - by snippsat - Oct-28-2016, 05:17 PM
RE: Flask Issues - by iainstott - Oct-29-2016, 02:38 PM
RE: Flask Issues - by snippsat - Oct-29-2016, 04:09 PM
RE: Flask Issues - by iainstott - Oct-29-2016, 06:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  flask issues with app structuring sidk23396 1 1,804 Feb-12-2020, 11:41 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020