Skip to content

Commit ff6b4db

Browse files
committed
Tweak guard on settings lookup.
- Legacy-Id: 19537
1 parent 4726214 commit ff6b4db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
settings.DEBUG = save_debug
9292

9393
# Debug Toolbar
94-
if hasattr(settings, 'USE_DEBUG_TOOLBAR') and settings.USE_DEBUG_TOOLBAR:
94+
if getattr(settings, 'USE_DEBUG_TOOLBAR', False):
9595
try:
9696
import debug_toolbar
9797
urlpatterns = urlpatterns + [path('__debug__/', include(debug_toolbar.urls)), ]

0 commit comments

Comments
 (0)