深度阅读

Django Debug Toolbar BaseConnectionHandler.all() error

作者
作者
2023年08月22日
更新时间
4.76 分钟
阅读时间
0
阅读量

出现以下问题

Django Debug Toolbar BaseConnectionHandler.all() error
解决方案比较简单,是版本兼容导致的。
只需要固定下版本即可
pip install django-debug-toolbar == 3.4.0

另外出现以下错误

django.core.exceptions.ImproperlyConfigured: WSGI application ‘application’ could not be loaded

也是由于版本问题导致
先移除debug_toolbar,在处理即可

INSTALLED_APPS = [
    ...
    'debug_toolbar',
    ...
]

MIDDLEWARE = [
    ...
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    ...
]

博客作者

热爱技术,乐于分享,持续学习。专注于Web开发、系统架构设计和人工智能领域。