On Tuesday 16 May 2017 08:51:49 knbk wrote: > On Tuesday, May 16, 2017 at 9:51:07 AM UTC+2, guettli wrote: > > This is a basic fact, and AFAIK this basic question is not solved > > yet. > > > > <table>{{ form }}</table> * vs * {{ form }} > > That question is actually answered by the documentation > <https://docs.djangoproject.com/en/1.11/ref/forms/api/#outputting-form > s-as-html> > > - For flexibility, the output does *not* include the <table> and > > </table> tags, nor does it include the <form> and </form> tags or > > an > > <input type="submit"> tag. It’s your job to do that.
Not sure if flexibility really is the original intent, but the Form class is badly named when you think of it as HTML forms. It is *not* an abstraction of the HTML <form> tag, it's closest to an abstraction of the DOM HTMLFormElements collection. Once you see that distinction, things become a lot easier to grasp. -- Melvyn Sopacua -- 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/3195267.aVqerAnJ1u%40devstation. For more options, visit https://groups.google.com/d/optout.