We should only add the DjDT urls if it is enabled.
This commit is contained in:
@@ -190,6 +190,7 @@ if settings.DEBUG:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
if 'debug_toolbar' in settings.INSTALLED_APPS:
|
||||
import debug_toolbar
|
||||
urlpatterns += (
|
||||
url(r'^__debug__/', include(debug_toolbar.urls)),
|
||||
|
||||
Reference in New Issue
Block a user