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

index f91b992f7782c96395e80779d13fa17a2c7e1be4..74a8dc2b672b7a5ff45dedb6f162deac85277a7d 100644 (file)
@@ -364,6 +364,10 @@ urlpatterns = patterns('',
 )
 
 if settings.DEBUG:
-    import debug_toolbar
-    urlpatterns += patterns('',
-    url(r'^__debug__/', include(debug_toolbar.urls)),)
\ No newline at end of file
+    try:
+        import debug_toolbar
+        urlpatterns += patterns('',
+        url(r'^__debug__/', include(debug_toolbar.urls)),)
+    except:
+        pass
+