Ask Your Question
2

New install, exception when registering

asked 2010-09-22 16:50:45 -0600

rfrankel gravatar image

I deployed the site, it shows up as expected on a development server (i.e. manage.py runserver), but when I try to register with Google or Yahoo! I get the following traceback. I do have python-openid installed, I did not create a Django superuser on the first syncdb, I ran the necessary South migrations, and (I believe) I followed all the other instructions.

Environment:

Request Method: POST
Request URL: http://li234-101.members.linode.com/account/register/
Django Version: 1.1.2
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.humanize',
 'django.contrib.sitemaps',
 'askbot',
 'askbot.deps.django_authopenid',
 'south',
 'askbot.deps.livesettings',
 'keyedcache',
 'robots']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
 'askbot.middleware.pagesize.QuestionsPageSizeMiddleware',
 'askbot.middleware.cancel.CancelActionMiddleware',
 'askbot.deps.recaptcha_django.middleware.ReCaptchaMiddleware',
 'django.middleware.transaction.TransactionMiddleware',
 'askbot.middleware.view_log.ViewLogMiddleware',
 'askbot.middleware.spaceless.SpacelessMiddleware')


Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
  99.                     response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/askbot-0.6.11-py2.6.egg/askbot/deps/django_authopenid/views.py" in decorated
  218.         return func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/askbot-0.6.11-py2.6.egg/askbot/deps/django_authopenid/views.py" in register
  772.                 raise Exception('this does not make any sense')

Exception Type: Exception at /account/register/
Exception Value: this does not make any sense
edit retag flag offensive close merge delete

Comments

Interesting, this is one of those exceptions that "should never happen" :) ... looking into it.
Evgeny gravatar imageEvgeny ( 2010-09-22 16:55:01 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2010-09-22 16:59:28 -0600

Evgeny gravatar image

updated 2010-09-22 17:30:41 -0600

I'm guessing that your django_authopenid has not been migrated - my fault - have not updated the instructions.

Try (in addition):

python manage.py migrate django_authopenid

edit: this solves the problem, please make AUTHENTICATION_BACKENDS in settings.py look this way:

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'askbot.deps.django_authopenid.backends.AuthBackend',
)

I forgot to update that in the settings.py template. You get 50 rep bonus for reporting this annoying issue :).

edit flag offensive delete link more

Comments

have you migrated the `django_authopenid` sub-app as well originally?
Evgeny gravatar imageEvgeny ( 2010-09-22 17:02:13 -0600 )edit
I don't understand the difference between your answer and your comment, but I had already done `python manage.py migrate django_authopenid` before having the problem. I just ran it again, to make sure, and yep - didn't help.
rfrankel gravatar imagerfrankel ( 2010-09-22 17:04:42 -0600 )edit
I wans't sure if you've done it already, so asked in the comment just in case (I've actually tried signing up at your site, hope you don't mind). Looking into this case right now.
Evgeny gravatar imageEvgeny ( 2010-09-22 17:09:35 -0600 )edit
Don't mind at all - thanks for your time!
rfrankel gravatar imagerfrankel ( 2010-09-22 17:10:13 -0600 )edit
Thanks, updating settings.py fixed the problem!
rfrankel gravatar imagerfrankel ( 2010-09-22 17:38:47 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2010-09-22 16:50:45 -0600

Seen: 546 times

Last updated: Sep 22 '10