# HG changeset patch # User nishanth # Date 1275128990 -19800 # Node ID 1df4b0e0d45ce771f24ef8d33b571be4d69aeaa8 # Parent 3d7a52d9ed2ee57ccf0a34f047b9561deb2d42b9 added the registration complete page diff -r 3d7a52d9ed2e -r 1df4b0e0d45c sdi/site/urls.py --- 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), ) diff -r 3d7a52d9ed2e -r 1df4b0e0d45c sdi/views.py --- 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") diff -r 3d7a52d9ed2e -r 1df4b0e0d45c templates/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 @@ + +
+ +You have successfully registered for Sage Days India 25.