1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

not push only try to import debug_toolbar if settings.debug is true

This commit is contained in:
catborise 2020-07-22 11:24:01 +03:00
parent 02654f6eda
commit 6bbebdd37c

View file

@ -19,8 +19,11 @@ urlpatterns = [
] ]
if settings.DEBUG: if settings.DEBUG:
import debug_toolbar try:
import debug_toolbar
urlpatterns += [ urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)), path('__debug__/', include(debug_toolbar.urls)),
] ]
except:
pass