Skip to content

Commit

Permalink
fix debug_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 0475007 commit 3c2b4c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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.2"
version = "5.1.3"

[tool.poetry.dependencies]
python = ">=3.12,<3.13"
Expand Down
3 changes: 2 additions & 1 deletion tribal_wars_planer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

import sys

from debug_toolbar.toolbar import debug_toolbar_urls
from django.conf import settings
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
Expand Down Expand Up @@ -76,4 +75,6 @@
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

urlpatterns += debug_toolbar_urls()

0 comments on commit 3c2b4c1

Please sign in to comment.