--- a/sdi/site/urls.py Sat May 29 15:49:48 2010 +0530
+++ b/sdi/site/urls.py Sat May 29 15:59:50 2010 +0530
@@ -1,7 +1,9 @@
from django.conf.urls.defaults import *
-from sage_days.sdi.views import register
+from sage_days.sdi.views import register, reg_complete
+
urlpatterns = patterns('',
- ('^register/$', register),
+ (r'^register/$', register),
+ (r'^complete/$', reg_complete),
)
--- a/sdi/views.py Sat May 29 15:49:48 2010 +0530
+++ b/sdi/views.py Sat May 29 15:59:50 2010 +0530
@@ -17,3 +17,9 @@
else:
form = RegisterForm()
return render_to_response("register.html", {"form":form})
+
+def reg_complete(request):
+ """ Tell the registration is successful.
+ """
+
+ return render_to_response("reg_complete.html")
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/reg_complete.html Sat May 29 15:59:50 2010 +0530
@@ -0,0 +1,8 @@
+<html>
+<body>
+<script language="javascript">
+setTimeout("document.location='/'", 10000);
+</script>
+You have successfully registered for Sage Days India 25. <br />
+You will be automatically redirected to sage days website in a few seconds.
+</body>