<form method="post"> {% csrf_token %} {{ registration_form.as_p }} <button type="submit">Register</button></form>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/12490918-6d56-4079-ab53-9b8cb6f9fd9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Intead of rendering it with the as_p. You can render them individually.ie{{form.name}}{{form.username}}In the forms.py, in each of the fields, add widget attributes.def MyForm(forms.ModelForm):
name = forms.CharField(label='name', widget=forms.TextInput(attrs={'placeholder':'Name', 'class':'yourInputFieldClassName'}))
--
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/67032251-4A45-46B5-95F3-EC7B552A273E%40gmail.com.