Skip to content

Commit

Permalink
rm django toolbar
Browse files Browse the repository at this point in the history
Signed-off-by: Rafał Safin <[email protected]>
  • Loading branch information
Rafał Safin committed Sep 10, 2024
1 parent 3c2b4c1 commit bf7f7ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["rafsaf <[email protected]>"]
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"
Expand Down
2 changes: 0 additions & 2 deletions tribal_wars_planer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"debug_toolbar",
]

REST_FRAMEWORK = {
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions tribal_wars_planer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit bf7f7ba

Please sign in to comment.