Removed typo in forms.py.
authorShantanu <shantanu@fossee.in>
Wed, 02 Sep 2009 19:43:43 +0530
changeset 3 eb11f0116216
parent 2 4d2bbb2f3c4e
child 4 ac11fee16880
Removed typo in forms.py.
template/index.html
upload/forms.py
upload/views.py
--- a/template/index.html	Wed Sep 02 19:34:48 2009 +0530
+++ b/template/index.html	Wed Sep 02 19:43:43 2009 +0530
@@ -21,9 +21,9 @@
 </head>
 <body>
 <div id="header">
-	<div id="logo">
-		<h1><a href="#">OCR</a></h1>
-		<h2><a href="http://www.sarai.net/">By sarai</a></h2>
+	<div id="logo">
+		<h1><a href="#">Spoken Tutorials Competition</a></h1>
+		<h2><a href="http://fossee.in/">By IITB</a></h2>		
 	</div>
 	<div id="menu">
 		<ul>
--- a/upload/forms.py	Wed Sep 02 19:34:48 2009 +0530
+++ b/upload/forms.py	Wed Sep 02 19:43:43 2009 +0530
@@ -1,6 +1,6 @@
 from django import forms
 
-from upload.model import Participant
+from upload.models import Participant
 
 class ParticipantForm(forms.ModelForm):
 	class Meta:
--- a/upload/views.py	Wed Sep 02 19:34:48 2009 +0530
+++ b/upload/views.py	Wed Sep 02 19:43:43 2009 +0530
@@ -32,21 +32,3 @@
 		})
     return render_to_response(template_name,
 			context_instance = c)
-
-#to create the dump of content shown in text box and then making it downloadable
-def file_archive(request):
-	if request.method == 'POST':
-		form = Uploaded_fileForm(request.POST, request.FILES)
-		if form.is_valid():
-			response = HttpResponse(mimetype='application/tar')
-    			response['Content-Disposition'] = 'attachment; filename=content.tar'
-			content = open('download.txt','w')
-			content.write(form.cleaned_data['content'])
-			content.close()
-			tar = tarfile.open('download.tar','w')
-			tar.add('download.txt')
-			tar.close()
-			response.write(open('download.tar').read())
-			return response
-	return HttpResponseRedirect('/ocr/')
-