Do any of my followers know anything about Django?
The programming framework for python, not the movie.
I've never worked in it before and I have to have a working prototype of a web app with it in less than 12 hours(that's if I don't sleep tonight).
The app I'm making is to keep track of people's scores as the participate in a board gaming competition.
I have 2 classes in the "models" file called "Player" and "Game"
Players have scores and names
Games have names, winners, length, number of players, etc
What I'm stuck on is that I wanted "game.winners" to be a list of player objects so I could say winners[0].score += 10 if they won the game then winners[1].score += 5 for second place, etc and it would add that score increase to the actual player object.
Only problem is I can't seem to make a class variable in Django that supports a list of objects (or a list at all). game.winners definitely has to be multiple values but I don't want them only to exist as attachments to the game object. Players should be able to get points from multiple games.
Can anyone help me out a bit?












