From c76b122be04b1a03b5db1fbfe6cd0bb2d5054210 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 21 Jan 2014 00:24:40 +0100 Subject: [PATCH] toobar goes to local urls --- example/sandbox/urls.py | 5 +++++ telemeta/urls.py | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/sandbox/urls.py b/example/sandbox/urls.py index fb0665ee..c2fb0b99 100644 --- a/example/sandbox/urls.py +++ b/example/sandbox/urls.py @@ -27,3 +27,8 @@ urlpatterns = patterns('', (r'^i18n/', include('django.conf.urls.i18n')), (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), ) + +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 diff --git a/telemeta/urls.py b/telemeta/urls.py index 90ec771e..b8ad6ada 100644 --- a/telemeta/urls.py +++ b/telemeta/urls.py @@ -363,8 +363,3 @@ urlpatterns = patterns('', ) -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 -- 2.39.5