Skip to content

Commit 2ba19b0

Browse files
committed
Comment out django_debug_toolbar settings from dev settings
The current version (4.4.2) of django-debug-toolbar aborts when running ./manage.py test with the toolbar enabled. While bakerydemo doesn't have any tests, .github/workflows/docker.yml runs this anyway, presumably as a sort of sanity check, and thus we need to properly disable django-debug-toolbar rather than just leaving it inactive via INTERNAL_IPS. (The `__debug__` route is still defined in bakerydemo.urls, but this seems to be harmless.)
1 parent cd572f5 commit 2ba19b0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bakerydemo/settings/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
ALLOWED_HOSTS = []
3131

32-
# Uncomment this (and adjust as appropriate) to enable django-debug-toolbar
32+
# Uncomment (and adjust as appropriate) to enable django-debug-toolbar
3333
# INTERNAL_IPS = [
3434
# '127.0.0.1',
3535
# ]
@@ -67,7 +67,8 @@
6767
"modelcluster",
6868
"taggit",
6969
"wagtailfontawesomesvg",
70-
"debug_toolbar",
70+
# Uncomment to enable django-debug-toolbar
71+
# "debug_toolbar",
7172
"django_extensions",
7273
"django.contrib.admin",
7374
"django.contrib.auth",
@@ -79,7 +80,8 @@
7980
]
8081

8182
MIDDLEWARE = [
82-
"debug_toolbar.middleware.DebugToolbarMiddleware",
83+
# Uncomment to enable django-debug-toolbar
84+
# "debug_toolbar.middleware.DebugToolbarMiddleware",
8385
"django.middleware.security.SecurityMiddleware",
8486
"django.contrib.sessions.middleware.SessionMiddleware",
8587
"django.middleware.common.CommonMiddleware",

0 commit comments

Comments
 (0)