Where to source a very large data structure.

8 views
Skip to first unread message

Tim Johnson

unread,
Mar 3, 2020, 8:58:27 PM3/3/20
to MLDjango
I am building a site that will render articles and essays. They will be
arranged by topic.

 An index of topics will be rendered. Once a topic is selected, a list
of articles will be rendered as a secondary index.

I propose to control this rendering using two data structures that will
grow in size as articles and/or topics are added.

One data structure would be a list or tuple of topics. The other would
be a dictionary where topics are the keys.

As I am new to django, I am not sure where to source such data
structures? Models.py or perhaps a new, dedicated module?

python = 3.7.2

django.VERSION = (2, 2, 6, 'final', 0)

thank you

--
Tim
tj49.com

Reply all
Reply to author
Forward
0 new messages