First time here? Check out the FAQ!

photon's profile - activity

2014-08-21 02:29:19 -0500 received badge Notable Question (source)
2014-07-28 16:46:53 -0500 received badge Notable Question (source)
2013-11-21 13:14:36 -0500 received badge Famous Question (source)
2013-11-21 13:14:36 -0500 received badge Popular Question (source)
2013-07-04 04:32:41 -0500 received badge Popular Question (source)
2012-11-21 01:56:06 -0500 received badge Famous Question (source)
2011-10-25 03:59:00 -0500 marked best answer login error:relation "django_authopenid_association" does not exist

Same story - python manage.py migrate right after syncdb should solve this issue.

2011-10-24 10:31:48 -0500 received badge Scholar ( source )
2011-10-24 10:31:48 -0500 marked best answer login error: DatabaseError at /account/signin/

Hello, maybe you forgot to run migrations?

python manage.py migrate

Tables for the askbot application and the bundled login app are created by the migrate command, but most other applications - by syncdb.

2011-10-24 10:31:21 -0500 commented answer login error: DatabaseError at /account/signin/

yes, the two problems are related. After I run the syncdb and migrate commands again, the two problems both disappear.

2011-10-24 10:29:47 -0500 commented question login error:relation "django_authopenid_association" does not exist

yes, the two problems are related. After I run the syncdb and migrate commands again, the two problems both disappear.

2011-10-24 10:18:38 -0500 commented answer login error: DatabaseError at /account/signin/

I've run python manage.py syncdb and python manage.py migrate, see login error:relation "djangoauthopenidassociation" does not exist

2011-10-24 10:12:48 -0500 asked a question login error:relation "django_authopenid_association" does not exist

I have a problem to login with superuser created with syncdb, then I tried to chose other method to login, such as google signin, and then I saw this error. Maybe the two problems are related, but I feel it better to seperate the two problems before the doubt is confirmed. detail as below:

OS: fedora 13
askbot: askbot-0.7.26, installed with easy_install.
db: postgres, client 8.4.5, server 9.0, psycopg2

Environment:

Request Method: POST
Request URL: http://localhost:8000/account/signin/

Django Version: 1.3
Python Version: 2.6.4
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.djangoauthopenid',
'south',
'askbot.deps.livesettings',
'keyedcache',
'robots',
'django
countries',
'djcelery',
'djkombu',
'followit']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'askbot.middleware.anonuser.ConnectToSessionMessagesMiddleware',
'askbot.middleware.pagesize.QuestionsPageSizeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view
log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware')

Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in getresponse
111. response = callback(request, *callback
args, *callback_kwargs)
File "/usr/lib/python2.6/site-packages/django/utils/decorators.py" in _wrapped_view
93. response = view_func(request, *args, *
kwargs)
File "/usr/lib/python2.6/site-packages/askbot-0.7.26-py2.6.egg/askbot/deps/djangoauthopenid/views.py" in signin
391. sreg
request=sregreq
File "/usr/lib/python2.6/site-packages/askbot-0.7.26-py2.6.egg/askbot/deps/django
authopenid/views.py" in askopenid
156. auth
request = consumer.begin(openidurl)
File "/usr/lib/python2.6/site-packages/python
openid-2.2.5-py2.6.egg/openid/consumer/consumer.py" in begin
353. return self.beginWithoutDiscovery(service, anonymous) File "/usr/lib/python2.6/site-packages/pythonopenid-2.2.5-py2.6.egg/openid/consumer/consumer.py" in beginWithoutDiscovery
376. auth
req = self.consumer.begin(service)
File "/usr/lib/python2.6/site-packages/pythonopenid-2.2.5-py2.6.egg/openid/consumer/consumer.py" in begin
598. assoc = self.
getAssociation(serviceendpoint)
File "/usr/lib/python2.6/site-packages/python
openid-2.2.5-py2.6.egg/openid/consumer/consumer.py" in getAssociation
1158. assoc = self.store.getAssociation(endpoint.server
url)
File "/usr/lib/python2.6/site-packages/askbot-0.7.26-py2.6.egg/askbot/deps/djangoauthopenid/util.py" in getAssociation
79. if not assocs:
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in nonzero
113. iter(self).next()
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in _result
iter
107. self.fillcache()
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in fillcache
772. self.resultcache.append(self.iter.next())
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in iterator
273. for row in compiler.results
iter():
File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py" in resultsiter
680. for rows in self.execute
sql(MULTI):
File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py ... (more)

2011-10-24 09:11:33 -0500 received badge Editor (source)
2011-10-24 09:06:48 -0500 asked a question login error: DatabaseError at /account/signin/

Hi, I setup askbot, but when I tried to sign in with the superuser created by syncdb, I see this error. I chose the askbot signin. Any suggestion?

The installation follows http://askbot.org/doc/index.html

An update: I also see a relation "djangoauthopenidassociation" does not exist error, maybe these two probems are related.

OS: fedora 13
askbot: askbot-0.7.26, installed with easy_install.
db: postgres, client 8.4.5, server 9.0, psycopg2

Environment:
Request Method: POST
Request URL: http://localhost:8000/account/signin/

Django Version: 1.3
Python Version: 2.6.4
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',
'django_countries',
'djcelery',
'djkombu',
'followit']
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',
'django.middleware.transaction.TransactionMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware')

Traceback: File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
178. response = middleware_method(request, response)
File "/usr/lib/python2.6/site-packages/django/contrib/sessions/middleware.py" in process_response
36. request.session.save()
File "/usr/lib/python2.6/site-packages/django/contrib/sessions/backends/db.py" in save
61. sid = transaction.savepoint(using=using)
File "/usr/lib/python2.6/site-packages/django/db/transaction.py" in savepoint
162. return connection.savepoint()
File "/usr/lib/python2.6/site-packages/django/db/backends/__init__.py" in savepoint
223. self._savepoint(sid)
File "/usr/lib/python2.6/site-packages/django/db/backends/__init__.py" in _savepoint
70. self.cursor().execute(self.ops.savepoint_create_sql(sid))
File "/usr/lib/python2.6/site-packages/django/db/backends/util.py" in execute
34. return self.cursor.execute(sql, params)
File "/usr/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py" in execute
44. return self.cursor.execute(query, args)

Exception Type: DatabaseError at /account/signin/
Exception Value: current transaction is aborted, commands ignored until end of transaction block