I use a lot of sprites in my css and all the location to the images has been hardcoded within the css. Now i am planning to move all images to a CDN. Its very hard to change the path in each and every place. Is there a way, to place the location as a variable in config file so that i need not change the path at all places when i move to another CDN. I am using python and django environment. My sample Code:
#header .topriglogin .telephone{background:url(../images/sprites.gif) -314px -183px no-repeat;}
My expectation:
#header .topriglogin .telephone{background:url(CONFIG.SPRITE_LOCATION+'sprites.gif') -314px -183px no-repeat;}
is it possibele?. please advise