Just tested it on my deployment environment. It still works there. Why is it failing on my development machine??
Deployment environment: Python 2.5.4 (r254:67916, Aug 5 2009, 12:42:40) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.contrib.auth import authenticate >>> from django.contrib.auth.models import User >>> user = >>> User.objects.create_user('johnlennon','len...@beatles.com','johnpassword') >>> user.save() >>> newuser= authenticate(username='johnlennon', password='johnpassword') >>> print newuser johnlennon >>> On Oct 21, 1:35 pm, Social Network in DJango <readb...@gmail.com> wrote: > My django program will not log in on one of my development machines, > yet it works fine in my > deployment environment. I managed to isolate the bug to the following > code: > > Any help is greatly appreciated. > > Jonathan > > (Python Shell)>>> from django.contrib.auth import authenticate > >>> from django.contrib.auth import login > >>> from django.contrib.auth import logout > >>> from django.contrib.auth.models import User > > >>> user = > >>> User.objects.create_user('johnlennon','len...@beatles.com','johnpassword') > >>> user.save() > >>> newuser= authenticate(username='johnlennon', password='johnpassword') > >>> newuser > >>> print newuser > > None --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---