Thanks for your help. I'm importing from django.contrib.auth, not from .views
from django.contrib.auth import authenticate, login I'll have to dig a little more. On Feb 4, 2:12 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Feb 4, 2008 2:50 PM, Mojave <[EMAIL PROTECTED]> wrote: > > > Docs say I pass both the request object and the authenticated user > > object to the login method, but that fails - login expects only one > > argument. > > Odds are that you are trying to call the *view* function > django.contrib.auth.views.login(), which accepts only one argument -- > an HttpRequest -- instead of the actual login function > django.contrib.auth.login, which accepts two. > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---