Dear Sir, i learned and used from https://docs.djangoproject.com/en/3.0/ref/templates/builtins/#linenumbers site. But, how to make dynamic serial number? Thank you.
On Sun, May 3, 2020 at 6:28 AM Benedict Uwazie <nonwaz78@gmail.com> wrote:
Inside your loop pass in forloop.counter like this {{ forloop.counter }} checkout this link https://techstream.org/Bits/Loop-Counter-in-Django-View--
On Saturday, 2 May 2020 18:48:09 UTC+1, Kushal Neupane wrote:Can you give one example sir?On Sat, May 2, 2020, 23:30 victor awakan <victor...@gmail.com> wrote:Try html ordered list with your for loop. Like this <ol></ol>--On Sat 2. May 2020 at 20.38, Kushal Neupane <mkus...@gmail.com> wrote:Not primary key to use here.There might be different data.I am trying to do serial numbers as total numbers in the list. Thank you--On Sat, May 2, 2020, 23:20 Jorge Gimeno <jlgim...@gmail.com> wrote:--On Sat, May 2, 2020 at 9:03 AM Kushal Neupane <mkus...@gmail.com> wrote:How to make Serail Number 1, 2, 3 and respective in template? Help me. Thank you.--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3842baeb-b054-482a-b127-ae5c160493ca%40googlegroups.com.Models in Python have an autoincrementing primary key (unless you have turned that off). See https://docs.djangoproject.com/en/3.0/topics/db/models/#automatic-primary-key-fields-Jorge
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANfN%3DK-HEni_1DQL7CKrE3nWtu%2BR1WgKmaAoMpPjiDsUd%3Daq6w%40mail.gmail.com.
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWyajUO4aw9qdb-zx1j_DYbFMDS2WrTzs8zVd0_tB3xYjNNaw%40mail.gmail.com.
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAipwd9H-aJjA6aFEcj0WWonTDyJ%2B3d42dSCcT0-8z6t1k1%2BUw%40mail.gmail.com.
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5b6a83c8-2056-4cd2-ad7c-e0a070bb04fe%40googlegroups.com.
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWyajWi-Cny3tawPaX79gA1GtO7ZsRB1S3G549DEjiH1pxYDA%40mail.gmail.com.
No comments:
Post a Comment