[Answer]-Using {% include %} to reuse CSS in Django

1👍

If your assets are organized like this:

/static
    /css
        /main.css
    /img
        /listingSample.png

you can use absolute path in css:

#listing:not(#foo) div > input + label {
    background: url('../img/listingSample.png');
    width: 110px;
    height: 99px;
    ....

Leave a comment