0
def get_queryset(self):
    return AnnualMean.objects.values("Site", "url")

With the above QuerySet from my views.py file, I can make a list of URL links appear on a page as one long column using this code:

{% for value in object_list %}
<ul><a href="/sites/{{value.url}}/">{{value.Site}}</a></ul>
{% endfor %}

It would be much better to have the list split into halves across two columns. I have spent a long time trying and looking at related forum posts. I think my difficulties might lie with with the html tags. Is there any way I can achieve what I am trying to do?

pjdavis
  • 325
  • 4
  • 25

0 Answers0