Create table rows by an entered number

10 views
Skip to first unread message

Ondra Baumrt

unread,
Mar 9, 2018, 10:23:09 AM3/9/18
to Django users
Hi, 
is there any possibility how to create a table with as many rows as is an entered number. In example: I have in DB an integer number 5 which means that I want to create table with 5 rows. Can I create table for any entered number using for-cycle or otherwise? 
Thanks for your help

Jani Tiainen

unread,
Mar 9, 2018, 10:27:56 AM3/9/18
to django...@googlegroups.com
Hi.

Surely you can. Django template language has everything you need to create tables by arbitrary rows and columns.


--
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+unsubscribe@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/93e5c2a3-b53c-47ba-b260-455d4f4dfd44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages