1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +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:
try:
import debug_toolbar
urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)),
]
except:
pass