5👍
If you are concerned about saving space/kbytes you can use the {% spaceless %}
template tag to get get rid of all the empty spaces between html tags. This is generally good practice. So put {% spaceless %}
at the very top of your base.html and {% endspaceless %}
at the very end
If you are worried about the asthetics of your code, there’s not much you can do!
- [Django]-How do I use BeautifulSoup to search for elements that occur before another element?
- [Django]-POST API response blocked by CORS policy – React and Django Rest Framwork
- [Django]-Django : Migration of polymorphic models back to a single base class
- [Django]-How can I add a form made by formbuilder to every page in Wagtail?
Source:stackexchange.com