Answer the question
In order to leave comments, you need to log in
Is it possible to connect all statics by template?
Good afternoon, is it possible to connect all the statics in Django somehow? {% static "css/vendor/*.css" %}
Or maybe there is an iterator to run through a given folder and connect everything? I know for sure this is implemented in Symfony
Answer the question
In order to leave comments, you need to log in
If such a desire appeared, then your users will suffer. Lots of CSS/js files are wrong. All your (custom project) styles should be in one file. And it is also desirable to collect all CSS in one file (if there is a bootstrap, font awesome, etc.). This is what django-compressor does. What's so hard about importing a couple of files into base.HTML once and then inheriting from it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question