Wednesday, August 24, 2022

Re: Two list on one page

Lay out your template to include both lists, then define get_context_data() in your view to have two lists of objects to show in your template.

Get farther along and it will be easier for us to answer specific questions.

hth

- Tom

On Aug 24, 2022, at 12:34 PM, Matheus Bon <matheusbon29@gmail.com> wrote:

What would be a way to get two lists on the same page?

Em quarta-feira, 24 de agosto de 2022 às 16:33:23 UTC-3, Matheus Bon escreveu:
Hello There

I want to create two lists on one page, in the style of the image (I'm Brazilian, so the list is in Portuguese).

However, if I do it the way I'm showing it in the code image, I'll necessarily have to make two pages for each list, right?



--
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/05b14e53-1950-41ac-84ac-51800f40a7e2n%40googlegroups.com.

No comments:

Post a Comment