added under_construction view and used it
authorNishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 20:33:08 +0530
changeset 369 602a909e9e16
parent 368 a4fa11b2cb5c
child 370 1be4a3c09a47
added under_construction view and used it
pytask/taskapp/urls.py
pytask/templates/under_construction.html
pytask/views.py
--- a/pytask/taskapp/urls.py	Sun Jan 09 20:26:11 2011 +0530
+++ b/pytask/taskapp/urls.py	Sun Jan 09 20:33:08 2011 +0530
@@ -3,6 +3,8 @@
 from pytask.taskapp.views import create_task, view_task, claim_task, \
         select_user, edit_task, create_textbook
 
+from pytask.views import under_construction
+
 urlpatterns = patterns('',
 
             (r'^create/$', create_task),
@@ -10,6 +12,7 @@
             (r'^view/tid=(\w+)$', view_task),
             (r'^claim/tid=(\w+)$', claim_task),
             (r'^select/tid=(\w+)$', select_user),
+            (r'^browse/$', under_construction),
 
             (r'^textbook/create/$', create_textbook)
 )
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/under_construction.html	Sun Jan 09 20:33:08 2011 +0530
@@ -0,0 +1,4 @@
+{% extends 'base.html' %}
+{% block content %}
+<h1> Page Under Construction </h1>
+{% endblock %}
--- a/pytask/views.py	Sun Jan 09 20:26:11 2011 +0530
+++ b/pytask/views.py	Sun Jan 09 20:33:08 2011 +0530
@@ -35,3 +35,7 @@
               }
 
     return render_to_response("index.html", context)
+
+def under_construction(request):
+
+    return render_to_response("under_construction.html")