Also, I just found out from here
https://docs.djangoproject.com/en/1.3/topics/forms/ that i can just:

{{form.field_name}}

which makes things even more flexible.


2011/12/22 Timothy Makobu <makobu.mwambir...@gmail.com>

> Fantastic. Thanks Amao.
>
>
> 2011/12/22 Branton Davis <blueca...@gmail.com>
>
>> AmaoZhao's answer is probably the best.  You can also try:
>>
>> class PostForm(forms.Form):
>>     post = forms.CharField(label='', help_text=None, max_length=160,
>>                  widget=forms.Textarea(attrs={'rows':3, "cols":70,}))
>>
>> The auto_id parameter only controls whether label tags and id attributes
>> are rendered (based on the field name):
>> https://docs.djangoproject.com/en/dev/ref/forms/api/#configuring-html-label-tags
>>
>>
>>
>> On Wed, Dec 21, 2011 at 11:20 PM, AmaoZhao <amaoz...@gmail.com> wrote:
>>
>>>  于 2011年12月22日 06:04, Timothy Makobu 写道:
>>>
>>> ow do I get rid of the "Post:
>>>
>>> The template render the form is {{field.label}} and {{field}}, you only
>>> need to display {{filed}}, for example:
>>>
>>> {% for field in form %}
>>>     {{field}}
>>> {% endfor %}
>>>
>>> Hope this can help you.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to