From: Guillaume Pellerin Date: Mon, 20 Jan 2014 23:23:12 +0000 (+0100) Subject: fix toolbar again X-Git-Tag: 1.4.6~12 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7d03cd2b09feba4fe518151c0dcecbd858adc2d1;p=telemeta.git fix toolbar again --- diff --git a/telemeta/urls.py b/telemeta/urls.py index 74a8dc2b..90ec771e 100644 --- a/telemeta/urls.py +++ b/telemeta/urls.py @@ -363,11 +363,8 @@ urlpatterns = patterns('', ) -if settings.DEBUG: - try: - import debug_toolbar - urlpatterns += patterns('', - url(r'^__debug__/', include(debug_toolbar.urls)),) - except: - pass - +if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS: + import debug_toolbar + urlpatterns += patterns('', + url(r'^__debug__/', include(debug_toolbar.urls)),) + \ No newline at end of file