aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/urls.py
diff options
context:
space:
mode:
authorPercy Perez-Pinedo2009-07-20 15:46:57 -0700
committerPercy Perez-Pinedo2009-07-20 15:46:57 -0700
commitb7629d5768295131c35d613dbb16d9a070474c77 (patch)
treef7557bdc972287765a0bb687c2fecf04ddd0718f /debug_toolbar/urls.py
parent073ab2c8255ebc310a54e9f937b4b17f94f7eac2 (diff)
parent4dc0710b6a5eedec0448909f6b90e55a4f3555d4 (diff)
downloaddjango-debug-toolbar-b7629d5768295131c35d613dbb16d9a070474c77.tar.bz2
removing trans so we can merge for now
Diffstat (limited to 'debug_toolbar/urls.py')
-rw-r--r--debug_toolbar/urls.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/debug_toolbar/urls.py b/debug_toolbar/urls.py
index 77d1a80..77491e3 100644
--- a/debug_toolbar/urls.py
+++ b/debug_toolbar/urls.py
@@ -7,10 +7,12 @@ this into the urlconf for the request.
from django.conf.urls.defaults import *
from django.conf import settings
+_PREFIX = '__debug__'
+
urlpatterns = patterns('',
- url(r'^__debug__/m/(.*)$', 'debug_toolbar.views.debug_media'),
- url(r'^__debug__/sql_select/$', 'debug_toolbar.views.sql_select', name='sql_select'),
- url(r'^__debug__/sql_explain/$', 'debug_toolbar.views.sql_explain', name='sql_explain'),
- url(r'^__debug__/sql_profile/$', 'debug_toolbar.views.sql_profile', name='sql_profile'),
- url(r'^__debug__/template_source/$', 'debug_toolbar.views.template_source', name='template_source'),
+ url(r'^%s/m/(.*)$' % _PREFIX, 'debug_toolbar.views.debug_media'),
+ url(r'^%s/sql_select/$' % _PREFIX, 'debug_toolbar.views.sql_select', name='sql_select'),
+ url(r'^%s/sql_explain/$' % _PREFIX, 'debug_toolbar.views.sql_explain', name='sql_explain'),
+ url(r'^%s/sql_profile/$' % _PREFIX, 'debug_toolbar.views.sql_profile', name='sql_profile'),
+ url(r'^%s/template_source/$' % _PREFIX, 'debug_toolbar.views.template_source', name='template_source'),
)