Currently, I am utilizing Django Compress to streamline the process of using fewer files in their original format, rather than converting them to CSS files. This method has been successful except for a minor issue with translating the paths for background images.
The less files are integrated into base.html as shown below:
<link rel="stylesheet/less" type="text/css" media="all" href="{{ STATIC_URL }}css/less/style.less" />
The background images are located in static/images, while the less files are stored in static/css/less. In the less files, I reference the images like this:
background-image:url(".../images/sprite.png");
This setup should function properly; however, when examining the rendered CSS, the paths for the background images appear incorrectly:
"http://localhost:8000/static/css/less/.../images/sprite.png"
I need assistance in identifying and rectifying this issue.
NOTE: Despite experimenting with 1, 2, and 3 dots, the problem remains unresolved.