From bf7f7bae5df3a6f79df0c0bced1522c17a44346d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Safin?= Date: Tue, 10 Sep 2024 21:39:19 +0200 Subject: [PATCH] rm django toolbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RafaƂ Safin --- pyproject.toml | 2 +- tribal_wars_planer/settings.py | 2 -- tribal_wars_planer/urls.py | 6 +++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 64e7c582..5203faee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ authors = ["rafsaf "] description = "Tribal Wars Planer django app, professional tool for creating outlines for off-game coordinators." name = "tribal_wars_planer" -version = "5.1.3" +version = "5.1.4" [tool.poetry.dependencies] python = ">=3.12,<3.13" diff --git a/tribal_wars_planer/settings.py b/tribal_wars_planer/settings.py index e2a5d18d..e33fd1b7 100644 --- a/tribal_wars_planer/settings.py +++ b/tribal_wars_planer/settings.py @@ -87,7 +87,6 @@ "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", - "debug_toolbar", ] REST_FRAMEWORK = { @@ -103,7 +102,6 @@ LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")] MIDDLEWARE = [ - "debug_toolbar.middleware.DebugToolbarMiddleware", "tribal_wars_planer.middlewares.PrometheusBeforeMiddleware", "django.middleware.security.SecurityMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", diff --git a/tribal_wars_planer/urls.py b/tribal_wars_planer/urls.py index f3faee54..e6e15824 100644 --- a/tribal_wars_planer/urls.py +++ b/tribal_wars_planer/urls.py @@ -74,7 +74,7 @@ if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # type: ignore -if settings.DEBUG and not TESTING: - from debug_toolbar.toolbar import debug_toolbar_urls +# if settings.DEBUG and not TESTING: +# from debug_toolbar.toolbar import debug_toolbar_urls - urlpatterns += debug_toolbar_urls() +# urlpatterns += debug_toolbar_urls()