summaryrefslogtreecommitdiff
path: root/allotter
diff options
context:
space:
mode:
authorPrimal Pappachan2012-03-09 10:56:51 +0530
committerPrimal Pappachan2012-03-09 10:56:51 +0530
commita8a644acdd7775da36cd109701a6a7235b851dd2 (patch)
tree06add862b518c0c2add9375a7bf8d9cfd1729e53 /allotter
parente95e8154391b1d1f60bff72e18ab935d66eaaa17 (diff)
parent83a237759bf184c1907efe56b8bf27a630112923 (diff)
downloadaloha-a8a644acdd7775da36cd109701a6a7235b851dd2.tar.gz
aloha-a8a644acdd7775da36cd109701a6a7235b851dd2.tar.bz2
aloha-a8a644acdd7775da36cd109701a6a7235b851dd2.zip
added 2 urls
Diffstat (limited to 'allotter')
-rw-r--r--allotter/urls.py3
-rw-r--r--allotter/views.py10
2 files changed, 5 insertions, 8 deletions
diff --git a/allotter/urls.py b/allotter/urls.py
index 53f7c40..55641ac 100644
--- a/allotter/urls.py
+++ b/allotter/urls.py
@@ -1,8 +1,9 @@
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('allotter.views',
- url(r'^$', 'hello'),
+ url(r'^$', 'apply'),
url(r'^login/$', 'user_login'),
+ url(r'^logout/$', 'user_logout'),
url(r'^register/$', 'user_register'),
url(r'^apply/$', 'apply'),
url(r'^quit/$', 'quit'),
diff --git a/allotter/views.py b/allotter/views.py
index 11137ed..cfd1868 100644
--- a/allotter/views.py
+++ b/allotter/views.py
@@ -63,13 +63,6 @@ def user_login(request):
context_instance=RequestContext(request))
@login_required
-def hello(request):
- user = request.user
- context = {'user': user}
- ci = RequestContext(request)
- return render_to_response('allotter/hello.html', context,
- context_instance=ci)
-@login_required
def apply(request):
user = request.user
if not(user.is_authenticated()):
@@ -90,3 +83,6 @@ def submit(request):
def quit(request):
pass
+def user_logout(request):
+ logout(request)
+ return redirect ('/allotter/')