diff --git a/main/settings.py b/main/settings.py index 025957b91d..2badd4bee8 100644 --- a/main/settings.py +++ b/main/settings.py @@ -690,12 +690,6 @@ def get_all_config_keys(): "main.middleware.feature_flags.CookieFeatureFlagMiddleware", ) -# django debug toolbar only in debug mode -if DEBUG: - INSTALLED_APPS += ("debug_toolbar",) - # it needs to be enabled before other middlewares - MIDDLEWARE = ("debug_toolbar.middleware.DebugToolbarMiddleware", *MIDDLEWARE) - REST_FRAMEWORK = { "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",), "DEFAULT_AUTHENTICATION_CLASSES": ( diff --git a/main/urls.py b/main/urls.py index b34382d7ba..edf5548707 100644 --- a/main/urls.py +++ b/main/urls.py @@ -66,8 +66,3 @@ + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) ) - -if settings.DEBUG: - import debug_toolbar # pylint: disable=wrong-import-position, wrong-import-order - - urlpatterns += [re_path(r"^__debug__/", include(debug_toolbar.urls))] diff --git a/poetry.lock b/poetry.lock index 99c06f832d..19d442e84b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1402,21 +1402,6 @@ files = [ asgiref = ">=3.6" django = ">=4.2" -[[package]] -name = "django-debug-toolbar" -version = "4.4.6" -description = "A configurable set of panels that display various debug information about the current request/response." -optional = false -python-versions = ">=3.8" -files = [ - {file = "django_debug_toolbar-4.4.6-py3-none-any.whl", hash = "sha256:3beb671c9ec44ffb817fad2780667f172bd1c067dbcabad6268ce39a81335f45"}, - {file = "django_debug_toolbar-4.4.6.tar.gz", hash = "sha256:36e421cb908c2f0675e07f9f41e3d1d8618dc386392ec82d23bcfcd5d29c7044"}, -] - -[package.dependencies] -django = ">=4.2.9" -sqlparse = ">=0.2" - [[package]] name = "django-filter" version = "2.4.0" @@ -7845,4 +7830,4 @@ testing = ["coverage[toml]", "zope.event", "zope.testing"] [metadata] lock-version = "2.0" python-versions = "3.12.6" -content-hash = "f733ab133945d808cb1294cb1bb99d9a34b118d57c324fcee30e0680978b0353" +content-hash = "bcb00a58e317d14f5861003db3e6bb7b73838dbe0f7521fbfac0b650f661ce96" diff --git a/pyproject.toml b/pyproject.toml index 6e32e402d8..f73965cf57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,7 +97,6 @@ deepmerge = "^2.0" [tool.poetry.group.dev.dependencies] bpython = "^0.25" ddt = "^1.6.0" -django-debug-toolbar = "^4.1.0" factory_boy = "^3.3.0" faker = "^35.0.0" ipdb = "^0.13.13"