mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
not push only try to import debug_toolbar if settings.debug is true
This commit is contained in:
parent
02654f6eda
commit
6bbebdd37c
1 changed files with 7 additions and 4 deletions
|
@ -19,8 +19,11 @@ urlpatterns = [
|
|||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
import debug_toolbar
|
||||
try:
|
||||
import debug_toolbar
|
||||
|
||||
urlpatterns += [
|
||||
path('__debug__/', include(debug_toolbar.urls)),
|
||||
]
|
||||
urlpatterns += [
|
||||
path('__debug__/', include(debug_toolbar.urls)),
|
||||
]
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue