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