We are handling a very large django codebase, we are using django debug toolbar, the problem is so weird, if I put DEBUG_TOOLBAR=True
in my django.settings
, I am not able to perform any activity with manage.py
like python manage.py runserver
or python manage.py collectstatic
any of it. When I press CTRL+C
to terminate, I am unable to, it got stuck there. Here is my django debug toolbar configuration.
DEBUG=True
DEBUG_TOOLBAR = True
if DEBUG and DEBUG_TOOLBAR:
INSTALLED_APPS += (
'debug_toolbar',
)
INTERNAL_IPS = (
'127.0.0.1',
'XX.XX.XXX.XXX',
)
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
]
DEBUG_TOOLBAR_CONFIG = {
'RENDER_PANELS': True,
'RESULTS_CACHE_SIZE': 2,
'RESULTS_STORE_SIZE': 10, # Required for ddt_request_history
'SHOW_TOOLBAR_CALLBACK': lambda request: True
}
MIDDLEWARE_CLASSES += (
'saul.middleware.profile.ProfileMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
However, I have gone through the answers of below question, but none of it worked.