Is there any way to add CSS/JS files dynamically in Django templates?

220 views Asked by At

Actually I am trying to implement a content delivery application in Django to support my SASS based application with dynamic style sheets and Javascript files. I searched a lot but wasn't able to find a single solution for this.

In a nutshell, I simply want to implement an application in which views fetch the CSS/JS files and then use the URLs of these views in a Django template (HTML) so that the response of those views as the content of a CSS/js file could include in the Django template.

I would be very grateful if someone helps me with this problem. I am stuck on this and not able to proceed further with my project.

It sucks a lot.

Thanks a lot in advance.

0

There are 0 answers