I am trying to create a dynamic CSS file using the Django templating engine or any other means.
Currently, I have a CSS rule that looks like this:
background-image: url('http://static.example.com/example.png');
Where http://static.example.com corresponds to the STATIC_URL variable in Python. Using the Django templating engine, I could theoretically write something like this:
background-image: url('{{ STATIC_URL }}example.png');
My question is, how can I use the Django templating engine (or any other means) to generate CSS dynamically?