Take a look at:
1) Form rendering options 
<https://docs.djangoproject.com/en/1.11/topics/forms/#form-rendering-options>
2) Outputting forms as HTML 
<https://docs.djangoproject.com/en/1.11/ref/forms/api/#outputting-forms-as-html>

{{ form }} and {{ form.as_table }} are basically the same.
So in terms of valid markup <table>{{ form }}</table> would be more correct.

On Thursday, May 4, 2017 at 4:46:13 PM UTC+3, guettli wrote:
>
> I am unsure how to render a form.
>
> I see these ways
>
>
>    - <table>{{ form }}</table>  
>    - {{ form }}
>
>
> If I use a model form, then the first way is the correct one.
>
>
> How to you solve this?
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/95dbd8e6-e89c-465f-b7ea-fa81d1fa3ac4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to