Answer the question
In order to leave comments, you need to log in
How to put an error in a form field?
Hello, there is a form in the template
{% for field in form %}
{{ field }}
{% endfor %}
Answer the question
In order to leave comments, you need to log in
It is necessary to typeset the input and insert the necessary data into it, and not insert the whole {{ field }}
https://docs.djangoproject.com/en/dev/topics/forms...
See here how to get to the error test to insert it into the placeholder
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question