css - Background image paths won't render correctly -
i'm using django compress able use less files directly, instead of having convert them css files, works fine except background images paths doesn't translated correctly, reason.
the less files linked in base.html this:
<link rel="stylesheet/less" type="text/css" media="all" href="{{ static_url }}css/less/style.less" />
the images lives in static/images , less files in static/css/less. in less files link them this:
background-image:url(".../images/sprite.png");
...which should work fine, isn't working @ all. when looking @ rendered css background images paths is:
"http://localhost:8000/static/css/less/.../images/sprite.png"
what wrong , how can fix it?
note: i've tried 1, 2 , 3 dots without luck.
since images in static folder have go 2 directory:
backgroun-image: url('../../images/sprite.png');
Comments
Post a Comment