Hello, had to shut down django-debug-toolbar due this error:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/core/model/list/
Django Version: 1.9.7
Python Version: 2.7.9
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
'django_countries',
'sorl.thumbnail',
'rest_framework',
'widget_tweaks',
'bootstrap_pagination',
'apps.core',
'apps.users',
'apps.landing']
Installed Middleware:
[u'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware']
Traceback:
File "/dir/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
235. response = middleware_method(request, response)
File "/dir/venv/local/lib/python2.7/site-packages/debug_toolbar/middleware.py" in process_response
129. panel.generate_stats(request, response)
File "/dir/venv/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/panel.py" in generate_stats
192. query['sql'] = reformat_sql(query['sql'])
File "/dir/venv/local/lib/python2.7/site-packages/debug_toolbar/panels/sql/utils.py" in reformat_sql
27. return swap_fields(''.join(stack.run(sql)))
File "/dir/venv/local/lib/python2.7/site-packages/sqlparse/engine/filter_stack.py" in run
29. stream = filter_.process(stream)
Exception Type: TypeError at /core/model/list/
Exception Value: process() takes exactly 3 arguments (2 given)
PIP:
Django==1.9.7
django-bootstrap-pagination==1.6.1
django-countries==3.4.1
django-debug-toolbar==1.4
django-filter==0.13.0
django-widget-tweaks==1.4.1
djangorestframework==3.4.0
Markdown==2.6.6
Pillow==3.3.0
PyMySQL==0.7.5
sorl-thumbnail==12.3
sqlparse==0.2.0
wheel==0.24.0
Upgrade the debug toolbar to 1.5 or downgrade sqlparse to 0.1.x.
There's a bunch of duplicates of this ticket if you need more info.
Thanks!
Most helpful comment
Upgrade the debug toolbar to 1.5 or downgrade sqlparse to 0.1.x.
There's a bunch of duplicates of this ticket if you need more info.