Working on a Django project, I am faced with a challenge in views.py where I need to render an HTML page by passing a list of lists as an argument. The goal is to display these lists in tabs or pagination, with the first list being active and the rest displayed in pagination. However, keep in mind that the lists may vary in the number of items they contain. Any suggestions on how to achieve this dynamic display?