I have the following code snippet:
user = User(username='h@h.com',email='h@h.com') user.set_password('pass') user.save() u = authenticate(username='h@h.com', password='pass')
The problem is that u is always None. I followed the code examples in other columns and narrowed them down to the lines above.
Any ideas on what might happen?
authentication django nonetype
David glass
source share