[Django]-New line in django templates

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!

0👍

👤hwjp

Leave a comment