Django Authenticate() Allways Returns None
I'm trying to create a custom login-form for authenticating against a remote-server, so I have to create a custom login-form. I have created a user with username='test3', password=
Solution 1:
django.contrib.auth.backends.ModelBackend
is an authentication backend and not a middleware class.
You should remove this authentication backend entry from MIDDLEWARE_CLASSES
settings.
Also, you need to define AUTHENTICATION_BACKENDS
to something like below:
# Authentication backends
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend', # default
.. # any other authentication backends
)
Post a Comment for "Django Authenticate() Allways Returns None"