Django Model Forms.

18 views
Skip to first unread message

kimeualexis

unread,
May 17, 2019, 7:23:14 AM5/17/19
to Django users
Hello, guys.
Is there a way to lay out Django Model form fields across the Browser rather than top-down?

Kindly assist.

Joe Reitman

unread,
May 17, 2019, 11:18:16 AM5/17/19
to Django users
In your template you can identify each field by its name and use a table to render them in columns. e.g.

table
  table row
    table data {{ form.username }}
    table data {{ form.password }}

Alex Kimeu

unread,
May 17, 2019, 11:20:17 AM5/17/19
to django...@googlegroups.com
Thanks. Makes sense. Let me try it. Thanks.

--
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...@googlegroups.com.
To post to this group, send email to django...@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/91849286-5271-48be-ae7d-b90c5ab59ea5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages