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
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
2 matches
Mail list logo