Skip to content

Commit f229740

Browse files
authored
docs: move the import statement of debug_toolbar_urls to inside of the if statement for avoiding potential errors
1 parent 4e47b94 commit f229740

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)