Skip to content

Commit e2fd4c0

Browse files
docs: move the import statement of debug_toolbar_urls to inside of … (#2174)
* docs: move the import statement of `debug_toolbar_urls` to inside of the if statement for avoiding potential errors * Add change log message for moving the docs --------- Co-authored-by: Tim Schilling <[email protected]>
1 parent 6061699 commit e2fd4c0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Pending
66

77
* Added a note about the default password in ``make example``.
88
* Removed logging about the toolbar failing to serialize a value into JSON.
9+
* Moved the the import statement of ``debug_toolbar.urls`` to within the if
10+
statement's scope on the installation documentation.
911

1012
6.0.0 (2025-07-22)
1113
------------------

docs/installation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ You should also modify your URLconf file:
183183
.. code-block:: python
184184
185185
from django.conf import settings
186-
from debug_toolbar.toolbar import debug_toolbar_urls
187186
188187
if not settings.TESTING:
188+
from debug_toolbar.toolbar import debug_toolbar_urls
189+
189190
urlpatterns = [
190191
*urlpatterns,
191192
] + debug_toolbar_urls()

0 commit comments

Comments
 (0)