Tuesday, March 3, 2020

Where to source a very large data structure.

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

--
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/4df33f3e-98d6-a488-7141-d64aeb6e3ed7%40akwebsoft.com.

No comments:

Post a Comment