Re: Logging in a newly created user

2007-07-18 Thread LaundroMat
On Jul 18, 9:08 am, Jonathan Buchanan <[EMAIL PROTECTED]> wrote: > LaundroMat wrote: > > Hi, > > > When running this, I get a "NoneType has no attribute > > is_authenticated()" error, and I cannot understand why: > > > 1 new_user = User.objects.create_user(username, "your.email", > > password) >

Re: Logging in a newly created user

2007-07-18 Thread Jonathan Buchanan
LaundroMat wrote: > Hi, > > When running this, I get a "NoneType has no attribute > is_authenticated()" error, and I cannot understand why: > > 1 new_user = User.objects.create_user(username, "your.email", > password) > 2 new_user.is_active = False > 3 new_user.save() > 4 user = authenticate(use

Logging in a newly created user

2007-07-17 Thread LaundroMat
Hi, When running this, I get a "NoneType has no attribute is_authenticated()" error, and I cannot understand why: 1 new_user = User.objects.create_user(username, "your.email", password) 2 new_user.is_active = False 3 new_user.save() 4 user = authenticate(username = new_user.username, password =