Can variables be passed in CSS files, similar to HTML files? For example:
In views.py:
def home(request):
bgcolor = "#999"
...
...
In the CSS file:
body {
background-color : {{bgcolor}};
}
If it is indeed possible, could you please provide guidance on how to accomplish this? Your assistance would be greatly appreciated. Thank you!
Edit: My apologies for any confusion. What I meant was, how can users customize their page if desired? While it might be achievable without using an external stylesheet, utilizing CSS from a CDN as static content may offer better performance. Kindly advise on any methods to achieve this.