urls.py
changeset 18 a39549bd5b08
parent 17 aa45fec40e7e
child 21 c28774fe7ffd
--- a/urls.py	Thu Feb 04 22:21:44 2010 +0530
+++ b/urls.py	Thu Feb 04 22:27:47 2010 +0530
@@ -4,8 +4,8 @@
 from django.contrib import admin
 admin.autodiscover()
 
-from pytask.taskapp.views.user import redirect_to_homepage, homepage, register, user_login, user_logout
-from pytask.taskapp.views.task import browse_tasks, view_task
+from pytask.taskapp.views.user import homepage, register, user_login, user_logout
+from pytask.taskapp.views.task import browse_tasks, view_task, create_task
 
 urlpatterns = patterns('',
     # Example:
@@ -17,7 +17,8 @@
     
     (r'^$', homepage),
     (r'^task/browse/$', browse_tasks),
-    (r'^task/view/tid=(\d+)', view_task),
+    (r'^task/view/tid=(\d+)$', view_task),
+    (r'^task/create/$', create_task),
     
     (r'^admin/', include(admin.site.urls)),