sdi/views.py
branchanoop
changeset 26 212fcba4459e
parent 25 30baf3c635c5
child 31 ec540dfbfe78
--- a/sdi/views.py	Sat May 29 19:35:49 2010 +0530
+++ b/sdi/views.py	Thu Jun 03 19:06:14 2010 +0530
@@ -1,4 +1,6 @@
 from django.shortcuts import render_to_response, redirect
+from django.http import HttpResponse
+
 
 from sage_days.sdi.models import Registrant
 from sage_days.sdi.forms import RegisterForm, SearchForm
@@ -11,7 +13,7 @@
         form = RegisterForm(request.POST)
         if form.is_valid():
             form.save()
-            return redirect("/registration/complete")
+            return redirect("/sage_days/registration/complete")
         else:
             return render_to_response("register.html", {"form":form})
     else:
@@ -70,3 +72,7 @@
     else:
         form = SearchForm()
         return render_to_response("list_stats.html", {"form":form})
+
+def homepage(request):
+        return render_to_response("index.html")
+