]> git.parisson.com Git - telemeta.git/commitdiff
fix toolbar again
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 20 Jan 2014 23:23:12 +0000 (00:23 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 20 Jan 2014 23:23:12 +0000 (00:23 +0100)
telemeta/urls.py

index 74a8dc2b672b7a5ff45dedb6f162deac85277a7d..90ec771e359397a2064b7bfee3d1c9f3fc123545 100644 (file)
@@ -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