def save_game(request): if request.method == 'POST': info = json.loads(request.body); newGame = Game(title=info.get('title'), description=info.get('description')) newGame.pubDate = datetime.datetime.now() newGame.author = User.objects.get(username='******') newGame.numberQuestions = 0 newGame.save() pdb.set_trace() return HttpResponse(request.body, mimetype="application/json")