I'm running django 1.5.1 and I'm trying to serve some static images defined inside my css. I have no problem serving the css itself and static images defined in the templates. Also styles defined in the css are applied correctly to my template. The only things that don't work are the images defined inside the css.
Here is a sample of my css file defining a class that includes a static image:
.outer_banner
{
background:url(/images/banner2.png) bottom center no-repeat;
padding:300px 0;
}
Here is an example of my template using the class defined in the css:
{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
<link href="{% static 'css/style.css' %}" rel="stylesheet" type="text/css" />
<!-- more header stuff here -->
</head>
<body>
<section class="outer_banner">
<!-- other stuff here -->
</section>
</body>
</html>
Thanks!