Hi, 2011/12/18 Abraham Yusuf <bb...@yahoo.com> > Hi all, > I'm trying to login a user using django's authentication backend with the > following: > user=auth.authenticate(userid,pass) > if user: > if user.is_active: > auth.login(request,user) > I am getting TypeError login() takes exactly 1 argument (2 given). I've > checked the docs and i can't find any problem there. Pls any help will be > appreciated. Am using django 1.3.1, python 2.7 on ubuntu 11.04. > > Do you have maybe another function called login(one_argument).
Cheers, J. > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- talueee.com Linux User #236965 (counter.li.org) key: http://talueee.com/gpg/jhonny5.asc Po fueno, po fale, po malegro. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.