chrome-django-panel
chrome-django-panel copied to clipboard
current transaction is aborted, commands ignored until end of transaction block
I get this error, after I add your app to the installed_apps and then load any page of my app, or try to do syncdb.
Is this a know issue? is there a fix?
Thanks
Here is a stack trace:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/staff/
Django Version: 1.4.3
Python Version: 2.7.2
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.flatpages',
'storages',
'debug_toolbar',
'debug_panel',
'django.contrib.humanize',
'django.contrib.sitemaps',
'django.contrib.admin',
'south',
'djcelery',
'kombu.transport.django',
'compressor',
'easy_thumbnails',
'gunicorn',
'django_coverage',
'django_nvd3',
'django_nose',
'django_extensions',
'inplaceeditform',
'django_facebook',
'requests',
'password_reset',
'starter',
'users',
'utilities',
'payments',
'boxes',
'bybox',
'staff',
'api',
'digital',
'rest_framework',
'rest_framework.authtoken')
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.clickjacking.XFrameOptionsMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')
Traceback:
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
188. response = middleware_method(request, response)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/base.py" in save
463. self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/base.py" in save_base
551. result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/manager.py" in _insert
203. return insert_query(self.model, objs, fields, **kwargs)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/query.py" in insert_query
1593. return query.get_compiler(using=using).execute_sql(return_id)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
912. cursor.execute(sql, params)
Exception Type: InternalError at /staff/
Exception Value: current transaction is aborted, commands ignored until end of transaction block
I fixed the error, thank you for telling me !
Update the python package with : pip install -U django-debug-panel
and it should be fine.
The database error is now fixed. However I am not seeing any ajax requests using the Django Debug chrome extension. The panel in inspector is just blank. Is there any extra steps?
Is the debug-toolbar working if you remove debug_panel from INSTALLED_APPS ? If it's note the case, then you should first make sure that debug-toolbar works and then add debug_panel to INSTALLED_APPS.
Yes, debug-toolbar works, but when I add debug_panel then the debug-toolbar disappears.
Tharshan
On Thursday, 22 August 2013 at 09:05, recamshak wrote:
Is the debug-toolbar working if you remove debug_panel from INSTALLED_APPS ? If it's note the case, then you should first make sure that debug-toolbar works and then add debug_panel to INSTALLED_APPS.
— Reply to this email directly or view it on GitHub (https://github.com/recamshak/chrome-django-panel/issues/1#issuecomment-23074073).
It's normal that is disappears, but it should then appears into the 'Django Debug' panel. If you open any page of your web application, then open the 'Django Debug' panel and then refresh your page, does it display something in the panel ?
Yes It displays only the links in the panel, however there is nothing in the big panel.