added list statiscs page
authornishanth
Sat, 29 May 2010 17:26:48 +0530
changeset 23 2aae8293f3a7
parent 22 1df4b0e0d45c
child 24 f79be1dd4a22
added list statiscs page
sdi/site/urls.py
sdi/views.py
settings.py
--- a/sdi/site/urls.py	Sat May 29 15:59:50 2010 +0530
+++ b/sdi/site/urls.py	Sat May 29 17:26:48 2010 +0530
@@ -1,9 +1,11 @@
 from django.conf.urls.defaults import *
 
-from sage_days.sdi.views import register, reg_complete
+from sage_days.settings import ADMIN_URL_PREFIX as aup
+from sage_days.sdi.views import register, reg_complete, list_stats
 
 urlpatterns = patterns('',
                        (r'^register/$', register),
                        (r'^complete/$', reg_complete),
+                       (r'%s/stats/$'%aup, list_stats),
                       )
 
--- a/sdi/views.py	Sat May 29 15:59:50 2010 +0530
+++ b/sdi/views.py	Sat May 29 17:26:48 2010 +0530
@@ -23,3 +23,9 @@
     """
 
     return render_to_response("reg_complete.html")
+
+def list_stats(request):
+    """ List the statiscs of registered participants.
+    """
+
+    return redirect("/registration/complete")
--- a/settings.py	Sat May 29 15:59:50 2010 +0530
+++ b/settings.py	Sat May 29 17:26:48 2010 +0530
@@ -82,3 +82,4 @@
 )
 
 APACHE_URL_PREFIX = "/sagedays/"
+ADMIN_URL_PREFIX = "ditchax"