Skip to content

Commit 7a3e911

Browse files
authored
Remove django-debug-toolbar (#2021)
1 parent 3f61959 commit 7a3e911

File tree

4 files changed

+1
-28
lines changed

4 files changed

+1
-28
lines changed

main/settings.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,12 +690,6 @@ def get_all_config_keys():
690690
"main.middleware.feature_flags.CookieFeatureFlagMiddleware",
691691
)
692692

693-
# django debug toolbar only in debug mode
694-
if DEBUG:
695-
INSTALLED_APPS += ("debug_toolbar",)
696-
# it needs to be enabled before other middlewares
697-
MIDDLEWARE = ("debug_toolbar.middleware.DebugToolbarMiddleware", *MIDDLEWARE)
698-
699693
REST_FRAMEWORK = {
700694
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
701695
"DEFAULT_AUTHENTICATION_CLASSES": (

main/urls.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,3 @@
6666
+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
6767
+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
6868
)
69-
70-
if settings.DEBUG:
71-
import debug_toolbar # pylint: disable=wrong-import-position, wrong-import-order
72-
73-
urlpatterns += [re_path(r"^__debug__/", include(debug_toolbar.urls))]

poetry.lock

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ deepmerge = "^2.0"
9797
[tool.poetry.group.dev.dependencies]
9898
bpython = "^0.25"
9999
ddt = "^1.6.0"
100-
django-debug-toolbar = "^4.1.0"
101100
factory_boy = "^3.3.0"
102101
faker = "^35.0.0"
103102
ipdb = "^0.13.13"

0 commit comments

Comments
 (0)