2👍
No {% nospaceless %} {% endnospaceless %}
.
Is {% spaceless %} {% endspaceless %}
.
I only found spaceless, it works for me.
Use the spaceless tag to remove whitespace between HTML tags, not whitespace within HTML tags or whitespace in plain text
This tag is not meant to “optimize” the size of the generated HTML content but merely to avoid extra whitespace between HTML tags to avoid browser rendering quirks under some circumstances.
Reference href: spaceless
1👍
Just to have it documented:
The template tag “nospaceless” came from django-tables2 they removed it in version 1.1.0
👤ness
- [Django]-Applying a Django FilterSet to an Annotated QuerySet?
- [Django]-Django Oauth Toolkit 2-legged and 3-legged
- [Django]-Django Class Based Views keep url parameters in session
0👍
There is no template tag called nospaceless
in django. may be you wanted endspaceless
? however, the usage does not seem to be correct
- [Django]-How do I retrieve a value of a field in a queryset object
- [Django]-How to pass variables to login page in django 1?
- [Django]-Why is my Django Rest Framework Search filter not working?
Source:stackexchange.com