registerguard / django_odbc

A test of connecting to a DTI Intersystems Caché database using the egenix.com mxODBC Django Database Engine - Django ODBC Adapter.
2 stars 0 forks source link

Updating django-debug-toolbar broke django_odbc #1

Open jheasly opened 10 years ago

jheasly commented 10 years ago

Updated to django-debug-toolbar==1.0.1 and things broke until I took it out of settings.py and settings_local.py. Have to circle back around and read the install docs, etc. for the latest version.

The commented out parts (that made things work) from settings_local.py:

INSTALLED_APPS += (
#     'debug_toolbar',
    'django_extensions',
)

MIDDLEWARE_CLASSES += (
#     'debug_toolbar.middleware.DebugToolbarMiddleware',
)

The hints I got from the /usr/local/var/log/apache2/error_log:

[Fri Mar 07 12:16:41 2014] [error]   File "/Users/jheasly/.virtualenvs/django_odbc/lib/python2.7/site-packages/debug_toolbar/middleware.py", line 86, in process_response
[Fri Mar 07 12:16:41 2014] [error]     new_response = panel.process_response(request, response)
[Fri Mar 07 12:16:41 2014] [error]   File "/Users/jheasly/.virtualenvs/django_odbc/lib/python2.7/site-packages/debug_toolbar/panels/request.py", line 47, in process_response
[Fri Mar 07 12:16:41 2014] [error]     for k in sorted(request.session.keys(), key=force_text)]

Also on the way to the above, had to add this to settings_local.py:

DEBUG_TOOLBAR_PATCH_SETTINGS = False