diff -r 08a47999f316 -r 07408d1ced76 upload/views.py --- a/upload/views.py Thu Sep 03 17:31:12 2009 +0530 +++ b/upload/views.py Thu Sep 03 18:37:48 2009 +0530 @@ -2,9 +2,10 @@ from django.http import HttpResponse from django.template import Context, Template from django.shortcuts import render_to_response -from form import FileForm, Uploaded_fileForm + from forms import ParticipantForm -import tarfile +from models import Participant + #function to read the upoaded file and store it def handle_uploaded_file(f): @@ -23,12 +24,14 @@ return render_to_response(template_name, {'form': form, 'value': False,}) else: return render_to_response(template_name, {'form': form, 'value': True,}) - c = Context() return render_to_response(template_name, - {'form': ParticipantForm(), 'value': True,}) + {'form': ParticipantForm(), 'value': True}) def submission(request, template_name='submission.html'): - ''' - view to return the submitted videos - ''' - pass + """View to return the submitted videos + """ + context = { + 'participants': Participant.objects.all() + } + + return render_to_response(template_name, context)