Re: Getting an 'User' object has no attribute 'startswith' when trying to use django.contrib.auth.views.login

2007-09-12 Thread shabda
I found the error, In my instance at the server I had added a line like, from django.contrib.auth.views import login, logout which was conflicting with the import I was expectating, from django.contrib.auth import authenticate, login I had added this after deployment to the server. On Sep 12,

Getting an 'User' object has no attribute 'startswith' when trying to use django.contrib.auth.views.login

2007-09-12 Thread shabda
I am trying to loging a user after they fill a form, using code if request.method == 'POST': data = request.POST.copy() errors = form.get_validation_errors(data) if not errors: new_user = form.save(data) user_profile = UserProfile(user =