def main_game_view(request): session_id = get_uniq_hash(request) generate_game(request.user, session_id) logger.info("the game {} has started by {}".format( session_id, request.user.username )) return redirect('new_game_view', session_id=session_id)
def main_view(request): session_id = get_uniq_hash(request) return redirect('message_view', session_id=session_id)