Environment: Request Method: GET Request URL: https://127.0.0.1:8000/user/vk_calback/?code=01b38004cd0cf69f0f Django Version: 1.6.2 Python Version: 2.7.5 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_facebook', 'south', 'storages', 'sslserver', 'hiyya_web.hiyya_user', 'hiyya_web.survey', 'hiyya_web.product', 'kombu.transport.django') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/home/ihor/.virtualenvs/giftzz/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 114. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/ihor/bitbucket/giftzzz/wsgi/hiyya_web/hiyya_web/hiyya_user/views.py" in vk_calback 179. user = authenticate(username=user.username, password=fake_password) Exception Type: AttributeError at /user/vk_calback/ Exception Value: 'NoneType' object has no attribute 'username'