V
V
Villian_Os2020-08-26 06:49:36
Django
Villian_Os, 2020-08-26 06:49:36

How to make an invalid password notification in django?

Hello. I ran into the following problem: There is a template where I passed the
UserCreationForm registration form with a password and login just like this:

{{ form }}

what was the data entry problem.

But, if I separate all the fields in the template in this way

{{ form.username }}
{{ form.password1 }}
{{ form.password2 }}


Then, if the input is incorrect, the page is simply updated and there is no information about the input rules ...
How can I make it so that at least a message is displayed about the incorrect password entry?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-08-26
@Villian_Os

Villian_Os link to BoundField.errors documentation
{{ form.username.errors }}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question