I really dont know if this kind of diffuse question is suited here, but i'll give it a go anyhow.
I'm building a turn-based (Yatzee)game in Django, where i have a rally simple model for the user/player and a bit more complex one for each users scoreboard.
A new game generates a new scoreboard, which basically consists of a number of int-fields and boolean-fields, one for each score (for example, if you get a two-pair, there is a field that will hold the score and a field that will set it as 'assigned')
The thing is that with this approach, where i save the score to the db(sqlite) after each turn, i'll be able to 'pause' a game and continue it later.
What i now would like to start looking into, without really knowing where to start looking is how to 'host' a game, for two or more playsre, over the web. If they're all sitting at the same computer there is no problem, since i can control the number of players/scoreboards through javascript.
To accomplish this, i'm thinking in the terms of assigning the scoreboards that belong 'togheter' to a session somehow, but how and where i'm supposed to do this is kinda out of my scope at the moment.
I've read a bit about the Django middleware, but cant really figure out if that wolud be a better way than trying to solve it from the model-layer (which a belive will be kinda hard..?).