1👍
loading css is a headache in django …it saves to cache you need to empty cache and collectstatic
what i am using is
1- make a css.html with <style> your_css </style>
tag and put the css in it
2- in the page i need the css i use the {%include "css.html"%}
to load the css
you edit directly… no cache no collectstatic
..nothing
0👍
My code worked when thanks to commentors I deleted the type from my stylesheet tag.
<link rel='stylesheet' href="{% static 'style.css' %}?{% now 'U' %}"/>
It works now
- [Answered ]-Sorting multi-language country names
- [Answered ]-Display user group of logged in user in django admin change_form.html?
- [Answered ]-Is there a good alternative to Primefaces For Django?
- [Answered ]-Grouping many to many choices by type in form
- [Answered ]-Django: where to find models field type translation to postgres
Source:stackexchange.com