django-debug-toolbar中间件,带有django-social-auth context processor = InternalError

时间:2013-08-16 18:08:01

标签: django django-socialauth django-debug-toolbar

错误是:

Exception Type: InternalError
Exception Value:    
current transaction is aborted, commands ignored until end of transaction block

TB:

/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py in execute_sql
    except EmptyResultSet:
        if result_type == MULTI:
            return empty_iter()
        else:
            return
    cursor = self.connection.cursor()
    cursor.execute(sql, params) ...
    if not result_type:
        return cursor
    if result_type == SINGLE:
        if self.query.ordering_aliases:
            return cursor.fetchone()[:-len(self.query.ordering_aliases)]
▼ Local vars
Variable    Value
cursor  
<debug_toolbar.utils.tracking.db.NormalCursorWrapper object at 0x7f66692ce3d0>
self    
<django.db.models.sql.compiler.SQLCompiler object at 0x7f66692ce250>
params  
(u'/',)
result_type 
'multi'
sql 
'SELECT "promotions_pagepromotion"."id", "promotions_pagepromotion"."content_type_id", "promotions_pagepromotion"."object_id", "promotions_pagepromotion"."position", "promotions_pagepromotion"."display_order", "promotions_pagepromotion"."clicks", "promotions_pagepromotion"."date_created", "promotions_pagepromotion"."page_url", "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model" FROM "promotions_pagepromotion" INNER JOIN "django_content_type" ON ("promotions_pagepromotion"."content_type_id" = "django_content_type"."id") WHERE "promotions_pagepromotion"."page_url" = %s  ORDER BY "promotions_pagepromotion"."display_order" ASC'

我做了syncdb。

有没有人知道如何解决这个问题?

是否与调试工具栏中间件订单有关?

0 个答案:

没有答案