Re: implementing login in application,gets ValueError

2010-02-09 Thread bruno desthuilliers
On Feb 9, 10:46 am, harryos wrote: > I was trying to create login in my application. And there's a flaw in your view's flow (ok lame pun, sorry). Your function's flow is: if request.method=='POST': try to authenticate the user if it succeeds: return a "redirect" response # XXX

implementing login in application,gets ValueError

2010-02-09 Thread harryos
I was trying to create login in my application .As per what is given in djangobook I created the login view as follows def login_view(request): if request.method=='POST': print 'login_view()::POST' username=request.POST['username'] password=r