pennersr/django-allauth — Issue #34: list index out of range on accounts/signup/
Author: cassionandi
Created: 2011-12-23 09:22:54+00:00
State: open

I started using allauth in a dev enviroment, so, maybe is some config that I havent noted, but here it is.

When I try to sigup a new user, it gave the full stack

IndexError at /accounts/signup/

list index out of range

Environment:

Request Method: POST
Request URL: http://localhost:8000/accounts/signup/

Django Version: 1.3.1
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.flatpages',
'django.contrib.staticfiles',
'django.contrib.admin',
'bolsonline.trocados',
'emailconfirmation',
'uni_form',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.openid']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.2.0-py2.7.egg/allauth/account/views.py" in signup
79. return complete_signup(request, user, success_url)
File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.2.0-py2.7.egg/allauth/account/utils.py" in complete_signup
84. perform_login(request, user)
File "/usr/local/lib/python2.7/dist-packages/django_allauth-0.2.0-py2.7.egg/allauth/account/utils.py" in perform_login
70. login(request, user)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/__init__.py" in login
85. user_logged_in.send(sender=user.__class__, request=request, user=user)
File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py" in send
172. response = receiver(signal=self, sender=sender, **named)
File "/home/cassio/dev/bolsonline/../bolsonline/trocados/__init__.py" in login
11. trocar_bolso(request, Bolso.por_usuario(user)[0].id)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in __getitem__
190. return list(qs)[0]

Exception Type: IndexError at /accounts/signup/
Exception Value: list index out of range