6👍
✅
Alternatily to CSS, you can iterate over errors like:
{% for field, error in form.errors.items %}
{% if field != '__all__' %}{{ field }}{% endif %}
{{ error | striptags }}
{% endfor %}
👤I S
12👍
This isn’t really a django question, it’s css. But in any case, you need to apply list-style: none
to the error list, ie.
.errorlist {
list-style: none;
}
👤Greg
- [Django]-Using statprof to profile a Django view – can not use signals in thread
- [Django]-Implement zeromq publisher in django with celery (Broker redis)
- [Django]-Django: Force cache-refresh after update
- [Django]-Django set multiple allowed hosts
Source:stackexchange.com