Merry Christmas all! I got my database running (https://discord.com/channels/856567261900832808/1321006276955869227) yesterday and now I'm working on views. However, the Django tutorials are kinda... lackluster? There's a lot of references to the shell but barely any examples in the code itself. So I don't know where to look.
I have this set up in views.
thisplayer = get_object_or_404(PlayerList, pk=playerID)
return render(request, "GHLWebsiteApp/player.html", {"playerID": thisplayer})```
In table *SkaterRecords*, which references *PlayerList*, there are 20 different stats that I'd like to show, with an additional count. So I need to show all the stats for playerID by using a count function for **GP**, sum function for most stats like **Goals**, and also average functions for certain stats like **Takeaways**. My question is, where does that go, and/or does it have to be passed through the player function?
(I will be using Javascript later to restrict SkaterRecords even more by seasonID, from a totally different table)