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