def save(request, guid): context = RequestContext(request) context_dict = {} presentation = Quak.get_presentation(guid) context_dict['title'] = presentation.title context_dict['guid'] = presentation.guid if request.method == 'POST': pass else: return render_to_response('quakapp/save.html', context_dict, context)
def page(request, guid): context = RequestContext(request) context_dict = {} presentation = Quak.get_presentation(guid) context_dict['title'] = presentation.title context_dict['guid'] = presentation.guid context_dict['questions'] = [] for question in presentation.questions: context_dict['questions'].append({ 'title': question.question , 'votes': question.votes , 'guid': question.guid }) return render_to_response('quakapp/index.html', context_dict, context)