I was trying to style my password fields in the registration of my Django Accounts App.
'password1': forms.PasswordInput(attrs={'class': 'form-control', 'placeholder': 'Password','required': 'required'}, ),
'password2': forms.PasswordInput(attrs={'class': 'form-control', 'placeholder': 'Confirm password','required': 'required'}, ),
My view renders to the register.html which is in the code below
<div class="col-12 mt-4">
{{ form.password1 }}
</div>
<div class="col-12 mt-4">
{{ form.password2 }}
</div>
But the result for the Password field is not styled as the other fields. The rendered register page is as shown below

