renamed views function name to older one.
--- a/upload/views.py Mon Jan 25 01:54:43 2010 +0530
+++ b/upload/views.py Mon Jan 25 02:13:07 2010 +0530
@@ -7,7 +7,7 @@
from forms import ParticipantForm
from models import Participant
-def register_user(request, template_name='index.html'):
+def upload_file(request, template_name='index.html'):
if request.method == 'POST':
form = ParticipantForm(request.POST, request.FILES)
if form.is_valid():
--- a/urls.py Mon Jan 25 01:54:43 2010 +0530
+++ b/urls.py Mon Jan 25 02:13:07 2010 +0530
@@ -16,7 +16,7 @@
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
- (r'^$','ws_reg.upload.views.register_user'),
+ (r'^$','ws_reg.upload.views.upload_file'),
(r'^list/$','ws_reg.upload.views.view_registrants'),
(r'^captcha/', include('captcha.urls')),
(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),