register: use ModelForm, and print all errors

This commit is contained in:
2023-10-31 21:14:24 +01:00
parent 54cc1b1705
commit a0c0d813b6
20 changed files with 203 additions and 258 deletions

View File

@ -1,9 +1,7 @@
<html>
<form method='post'>
{% csrf_token %}
<input type="text" name="username" placeholder="username">
<input type="text" name="current_password" placeholder="current_password">
<input type="text" name="new_password" placeholder="new_password">
{{form.as_p}}
<input type='submit'>
</form>
</html>

View File

@ -1,7 +1,7 @@
<html>
<form method='post'>
{% csrf_token %}
{{ form }}
{{ form.as_p }}
<input type='submit'>
</form>
</html>

View File

@ -1,7 +1,7 @@
<html>
<form method='post'>
{% csrf_token %}
{{ form }}
{{ form.as_p }}
<input type='submit'>
</form>
</html>