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
>
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
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
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
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',
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
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
7 matches
Mail list logo