summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authoranoop2010-02-04 22:14:34 +0530
committeranoop2010-02-04 22:14:34 +0530
commitf9d063ba2c95fcb836437fbba60b2e5510e75d47 (patch)
tree9fbd66837c8ef6913cce03339b8b887d604f7d07 /urls.py
parent6abcf4483cdfed7da478c626f48d22bee8448047 (diff)
downloadpytask-f9d063ba2c95fcb836437fbba60b2e5510e75d47.tar.gz
pytask-f9d063ba2c95fcb836437fbba60b2e5510e75d47.tar.bz2
pytask-f9d063ba2c95fcb836437fbba60b2e5510e75d47.zip
added views, templates for register, login, logout user.
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/urls.py b/urls.py
index 7d89381..f237544 100644
--- a/urls.py
+++ b/urls.py
@@ -4,7 +4,7 @@ from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
-from pytask.taskapp.views.users import redirect_to_homepage, homepage
+from pytask.taskapp.views.users import redirect_to_homepage, homepage, register, user_login, user_logout
from pytask.taskapp.views.tasks import browse_tasks, view_task
urlpatterns = patterns('',
@@ -20,5 +20,8 @@ urlpatterns = patterns('',
(r'^task/view/tid=(\d+)', view_task),
(r'^admin/', include(admin.site.urls)),
-
+
+ (r'^accounts/register/$',register),
+ (r'^accounts/login/$',user_login),
+ (r'^accounts/logout/$',user_logout)
)