示例#1
0
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)
示例#2
0
文件: views.py 项目: nmessa/letters
def main_view(request):
    session_id = get_uniq_hash(request)
    return redirect('message_view', session_id=session_id)
示例#3
0
def main_view(request):
    session_id = get_uniq_hash(request)
    return redirect('message_view', session_id=session_id)