Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/rest-auth/login/
Django Version: 1.7.1
Python Version: 2.7.8
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'reminder',
'rest_framework',
'rest_framework.authtoken',
'rest_auth',
'allauth',
'allauth.account',
'rest_auth.registration',
'allauth.socialaccount',
'allauth.socialaccount.providers.facebook')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "I:\www\bvenv\lib\site-packages\django\core\handlers\base.py" in get_response
111. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "I:\www\bvenv\lib\site-packages\django\views\decorators\csrf.py" in wrapped_view
57. return view_func(*args, **kwargs)
File "I:\www\bvenv\lib\site-packages\django\views\generic\base.py" in view
69. return self.dispatch(request, *args, **kwargs)
File "I:\www\bvenv\lib\site-packages\rest_framework\views.py" in dispatch
406. response = self.handle_exception(exc)
File "I:\www\bvenv\lib\site-packages\rest_framework\views.py" in dispatch
403. response = handler(request, *args, **kwargs)
File "I:\www\bvenv\lib\site-packages\rest_auth\views.py" in post
52. self.login()
File "I:\www\bvenv\lib\site-packages\rest_auth\views.py" in login
34. self.user = self.serializer.object['user']
Exception Type: AttributeError at /rest-auth/login/
Exception Value: 'LoginSerializer' object has no attribute 'object'