Need help for building market catalog

I am creating a web application for my crop, but I am a super rookie for programming, I’m using django as the base frame of my website because it’s already have things like user accounts and databases, I have managed to import SDE into my database.
But now I have a problem, I need to build a market catalog, just like the one in the game, a folding list to organize all of items. But i don’t know how to do that, I tried mixing marketGroups and invType tables in a ListView class, and then used nested loops to print them out in the template according to the hierarchical relationship of parentGroupID.
Eventually got the results that I want, but the scripts runs very slowly because of the large amount of data in the nested loop. Obviously not suitable for production environment. So is there a convenient and quick way to create a market catalog?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.