--- 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"