Skip to content

Commit 29ec51d

Browse files
committed
remove django-debug-toolbar as a dependency
1 parent 74590ea commit 29ec51d

File tree

4 files changed

+2
-22
lines changed

4 files changed

+2
-22
lines changed

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ dev = [
8181
"coverage>=7.6.12",
8282
"darglint>=1.8.1",
8383
"deepdiff>=8.2.0",
84-
"django-debug-toolbar>=4.3.0",
8584
"django-extensions>=3.2.3",
8685
"django-stubs[compatible-mypy]>=5.1.3",
8786
"django-test-migrations>=1.4.0",

tests/settings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
MIDDLEWARE = (
9898
"django.contrib.sessions.middleware.SessionMiddleware",
9999
"django.middleware.common.CommonMiddleware",
100-
"debug_toolbar.middleware.DebugToolbarMiddleware",
100+
# "debug_toolbar.middleware.DebugToolbarMiddleware",
101101
"django.middleware.csrf.CsrfViewMiddleware",
102102
"django.contrib.auth.middleware.AuthenticationMiddleware",
103103
"django.contrib.messages.middleware.MessageMiddleware",
@@ -111,7 +111,7 @@
111111
"tests.converters",
112112
"tests.djenum",
113113
"tests.tmpls",
114-
"debug_toolbar",
114+
# "debug_toolbar",
115115
"django_extensions",
116116
"django.contrib.auth",
117117
"django.contrib.contenttypes",

tests/urls.py

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from django.conf import settings
22
from django.contrib import admin
33
from django.urls import include, path
4-
from debug_toolbar.toolbar import debug_toolbar_urls
54

65

76
urlpatterns = [
@@ -15,6 +14,3 @@
1514

1615
if "tests.enum_prop" in settings.INSTALLED_APPS: # pragma: no cover
1716
urlpatterns.append(path("enum_prop/", include("tests.enum_prop.urls")))
18-
19-
if settings.DEBUG:
20-
urlpatterns += debug_toolbar_urls()

uv.lock

-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)