Re: How do I customize registration form HTML?

2017-12-01 Thread Tom Tanner
Where can I find all the options like {{ form.name }} ? On Friday, December 1, 2017 at 9:27:21 AM UTC-5, yingi keme wrote: > > > > Yingi Kem > > On 1 Dec 2017, at 3:25 PM, yingi keme > wrote: > > Intead of rendering it with the as_p. You can render them individually. > ie >

Re: How do I customize registration form HTML?

2017-12-01 Thread Mario Gudelj
I’d recommend you to look at crispy forms as well. On Sat, 2 Dec 2017 at 1:29 am, yingi keme wrote: > Hey, i made a mistake in the previous reply. Its widget and not widgets. > The correct code is: > > > Intead of rendering it with the as_p. You can render them

Re: How do I customize registration form HTML?

2017-12-01 Thread yingi keme
Hey, i made a mistake in the previous reply. Its widget and not widgets. The correct code is: 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

Re: How do I customize registration form HTML?

2017-12-01 Thread yingi keme
Yingi Kem > On 1 Dec 2017, at 3:25 PM, yingi keme wrote: > > 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

Re: How do I customize registration form HTML?

2017-12-01 Thread yingi keme
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',

Re: How do I customize registration form HTML?

2017-12-01 Thread Luiz Guilherme Schiefler de Arruda
Hello, I don't know if this tutorial will help you. It helped me a lot. https://simpleisbetterthancomplex.com/series/2017/09/25/a-complete-beginners-guide-to-django-part-4.html#sign-up It is a very good serie teaching how to build a board. Em quinta-feira, 30 de novembro de 2017 22:50:35

How do I customize registration form HTML?

2017-11-30 Thread Tom Tanner
The HTML for the user registration form looks like this: {% csrf_token %} {{ registration_form.as_p }} Register I understand that the `registration_form.as_p` line automatically gives me the form's HTML. But I'd like to customize that HTML. For instance, I'd like the label text to be