Django pagination with dictionary where key is a list
问题 I have a dictionary in my views.py file where the values are lists. In my template I have the following html: {% for key, values in my_dict %} <tr> <td colspan="6" class="key">{{ key }}</td> </tr> {% for value in values %} <tr> <td colspan="6" class="value">{{ value }}</td> </tr> {% endfor %} {% endfor %} which prints out the name of the key followed by the list items inside the value. However, I want to be able to paginate the keys such that only 10 keys with their values appear per page. I