aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/urls.py
diff options
context:
space:
mode:
authorRob Hudson2008-09-16 07:00:29 -0700
committerRob Hudson2008-09-16 07:00:29 -0700
commit96ca83db5686f5b8983e7b008a698307130e58c9 (patch)
tree7dcce0b3865e3599e5e58599a8bef799b2370e3f /debug_toolbar/urls.py
parent4591e34f0140c43e68e4ecd97eae7f3ea05878f6 (diff)
parent5fd534e68dbd191c5d6062a39ae512b109cccbdb (diff)
downloaddjango-debug-toolbar-96ca83db5686f5b8983e7b008a698307130e58c9.tar.bz2
Merge branch 'master' into explain and updating a few bits to work with the new
urls and views.
Diffstat (limited to 'debug_toolbar/urls.py')
-rw-r--r--debug_toolbar/urls.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/debug_toolbar/urls.py b/debug_toolbar/urls.py
index 24d4b12..e0e4b7a 100644
--- a/debug_toolbar/urls.py
+++ b/debug_toolbar/urls.py
@@ -1,6 +1,13 @@
+"""
+URLpatterns for the debug toolbar.
+
+These should not be loaded explicitly; the debug toolbar middleware will patch
+this into the urlconf for the request.
+"""
from django.conf.urls.defaults import *
+from django.conf import settings
urlpatterns = patterns('',
- # EXPLAIN SQL via AJAX
- url(r'explain/$', 'debug_toolbar.views.explain', name='explain_sql'),
+ url(r'^__debug__/m/(.*)$', 'debug_toolbar.views.debug_media'),
+ url(r'^__debug__/sql_explain/$', 'debug_toolbar.views.sql_explain', name='sql_explain'),
)